inhumate-rti-vue
TypeScript icon, indicating that this package has built-in type declarations

1.5.4 • Public • Published

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.

/inhumate-rti-vue/

    Package Sidebar

    Install

    npm i inhumate-rti-vue

    Weekly Downloads

    7

    Version

    1.5.4

    License

    Apache-2.0

    Unpacked Size

    1.22 MB

    Total Files

    16

    Last publish

    Collaborators

    • inhumate