mqtt-vue-hook
mqtt-vue-hook copied to clipboard
Mqtt-Vue-hook is a TypeScript library that makes it easy to connect to an MQTT broker (supports v5) and manages callback functions for various topics.
I am using Vue 3 and I managed to connect to a server and to subscribe to a topic, but i can't figure out how to display the messages.. Any...
Hello, it's me. The client keeps on trying to reconnect for me when I set keepalive to 0. Is there a way to disable the auto-reconnect mechanism? Also, is there...
On event
Hello, it's me again.How can I on different events like native mqtt? For example:client.on('connect', function () {}).I want to be able to do the corresponding business logic as soon as...
Good day. Why do you need to display connection message in console?
当协议是 mqtt:// 的时候 会出现这个错误 Uncaught (in promise) TypeError: net.createConnection is not a function
I don't know why this is failing with the error: `WebSocket connection to 'ws://localhost:1883/' failed: ` ``` js const protocol = "mqtt" const host = "localhost" const port = 1883...
In mqttjs, I use heart beat to keep connection alive, code like: // send heart beat which is pingreq client.value.on("packetsend", packet => { console.log( moment().format("YYYY-MM-DD HH:mm:ss") + ` send ${packet.cmd}`...
In mqttjs, I use heart beat to keep connection alive, code like: // send heart beat which is pingreq client.value.on("packetsend", packet => { console.log( moment().format("YYYY-MM-DD HH:mm:ss") + ` send ${packet.cmd}`...
I am trying to connect to a broker via WSS using a ca cert. I is failing to connect and a in the error is undefined so I do not...