0.1.1 • Published 4 years ago

khedron73-vue-realtime v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Vue-Realtime

MQTT over Websocket implementation for vue


Install:

npm i khedron73/vue-realtime --save
import VueRealtime from "khedron73/vue-realtime";
Vue.use(VueRealtime,options**)

Options :

Usage:

/**
*   Subscribe to a topic and execute the declared function
*   Topis can have multiple assigned functions 
*   @param topic    : String!
*   @param fnc      : Function!
*/

this.$realtime.subscribe(topic,fnc)


/**
*   Unsubscribe from a topic. 
*   Every attached function gets removed as well
*   @param topic    : String!
*/

this.$realtime.unsubscribe(topic)
0.1.1

4 years ago

0.1.0

4 years ago