1.5.1 • Published 4 months ago

inhumate-rti v1.5.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Inhumate RTI Javascript Client

This is the Javascript/TypeScript/Web client for the Inhumate RTI (RunTime Infrastructure), part of the Inhumate Suite.

See the Inhumate Suite documentation for more in-depth topics and an overview of the software 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

import * as RTI from "inhumate-rti"
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.

1.2.0

6 months ago

1.5.1

4 months ago

1.5.0

4 months ago

1.4.0

4 months ago

1.3.1

5 months ago

1.2.2

5 months ago

1.3.0

5 months ago

1.2.1

6 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.2

10 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.93

11 months ago

0.0.92

11 months ago

0.0.91

11 months ago

0.0.90

11 months ago

0.0.30

11 months ago

0.0.27

11 months ago

0.0.26

11 months ago