inhumate-rti
v1.1.2
Published
Inhumate RTI javascript client
Downloads
10
Readme
Inhumate RTI Javascript Client
This is the Javascript/TypeScript/Web client for the Inhumate RTI (RunTime Infrastructure), part of the Inhumate Suite.
Installing
Using a package manager
Such as NPM:
npm install --save inhumate-rti
Using a bundled script file
Download the RTI Client JS Bundle from the Inhumate Downloads site.
Then include it in a script
tag in your HTML file:
<script src="inhumate-rti-bundle-x.x.xx.js"></script>
Quick Start
const rti = new RTI.Client({ application: "JS RTI App" })
rti.on("connect", () => console.log("RTI connected"))
rti.subscribeText("hello", (channel, message) => console.log(`Received: ${message}`))
rti.whenConnected(() => rti.publishText("hello", "Hello World!"))
For a more complete usage example, see usage_example.ts.
Building and running tests
Clone the project from GitHub, and in the js
folder, using Node (version 20 tested):
npm install
npm run build
npm test # with the broker running
npm start # for a usage example
Feedback & Contributing
Feedback and contributions of any kind are welcome.
- Please file bug reports and/or feature requests as GitHub issues
- Suggest code changes by creating a pull request
- For any other questions, comments or inquiries, get in touch