1.5.1 • Published 5 months ago

inhumate-rti-vue v1.5.1

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

Inhumate RTI Vue Integration

Vue 3 integration 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

npm install --save inhumate-rti-vue

Quick Start

In main.ts:

import rti from "inhumate-rti-vue"
app.use(rti, { application: "Vue RTI App" })

In a component, if using pinia, use the store to access the RTI client:

import { useRtiStore } from "inhumate-rti-vue"
const rti = useRtiStore()
rti.client.subscribeText("hello", (msg) => console.log("Received: ", msg))
rti.client.whenConnected(() => rti.client.publishText("hello", "Hello World!"))

Or, if not using pinia, the RTI client can be injected:

import { inject } from "vue"
const rti = inject("rti-client")
rti.subscribeText("hello", (msg) => console.log("Received: ", msg))
rti.whenConnected(() => rti.publishText("hello", "Hello World!"))

Building and running the sandbox app

Dependencies

Clone the project from GitHub, and in the vue folder:

npm install
npm run build # to build the library
npm start # to run the sandbox app

Feedback & Contributing

Feedback and contributions of any kind are welcome.

1.2.0

7 months ago

1.5.1

5 months ago

1.5.0

5 months ago

1.4.0

6 months ago

1.3.1

6 months ago

1.2.2

6 months ago

1.3.0

6 months ago

1.2.1

7 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.1.2

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.93

1 year ago

0.0.92

1 year ago

0.0.91

1 year ago

0.0.90

1 year ago

0.0.30

1 year ago