Comments (3)
Since this library is so low level, I've left this kind of plumbing in the hands of users (cf. mqtt-growl). It's super boilerplatey if you want to use the library for standard stuff though, you have to handle pingreq/resps, qos, and connection/connacks manually, so I'm currently hacking on a higher level api for it. Check back soon!
from mqtt.js.
It might also be worth noting that some brokers (I'm thinking of mosquitto in particular) add a grace period on top of the keepalive before the broker cuts the connection. This is why you might see in some places pingreq periods equal to the keepalive.
from mqtt.js.
I know I need to implement it on top of that, but it might be tricky for beginners.
An high level API will be awesome.
from mqtt.js.
Related Issues (20)
- [feat]: Add option to choose between worker-timers and native timers HOT 18
- [Bug]: Only last message is send when Connecting with multiple retain Topics HOT 3
- [Bug]: Issues With Chrome and WSS HOT 26
- [Bug]: WebSocket not completely disconnected HOT 3
- [Bug]: nodejs 20.11.1 (from debian 12) + mqtt 5.4.0 allways get connack timeout in connection HOT 5
- [Bug]:vite使用legacy,打包mqtt会报错 HOT 4
- [Bug]: wrong connection string with a port puts mqtt client into an endless loop HOT 9
- [Bug]: on reconnect after regaining internet, will loop forever disconnecting after reconnecting HOT 5
- [Bug]: Connect packet not formatted properly in NodeJS. HOT 4
- [Bug]: Unable to callback when disconnected with mqtt4.1.0 in the WeChat mini program of Uniapp
- React Native Support HOT 3
- [Bug]: Issue with importing MQTT library in JSDOM test environment HOT 1
- [Bug]: Uncaught Error occurs when connection fails with WebSocket HOT 2
- [Bug]: Websocket is not defined HOT 6
- [Bug]: mqttjs:client _checkPing :: checking ping runs twice sometimes causes reconnect loop HOT 7
- I wanna Add addition params [topicFilter] on Event of client.on("messsage",callback) HOT 2
- [Bug]: Error: Keepalive timeout, js engine: hermes - React Native HOT 28
- [Bug]: MQTT connection getting offline while running in React Native. HOT 10
- [feat] Keepalive improvements
- Bandwidth tracking and reporting HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt.js.