1.5.1 • Published 4 months ago
inhumate-rti-vue v1.5.1
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
- Node (version 20 tested)
- Vue 3
- The Javascript client built
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.
- 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
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.1-dev-version
11 months ago