`
hongtoushizi
  • 浏览: 358595 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

MQTT Server: MQTT.js or Mosca?

    博客分类:
  • mqtt
阅读更多

    in MQTT there are two kind of clients, clean and unclean: clean clients need to redo all their subscription when they reconnect, while unclean clients do not. Moreover, if an unclean client do a subscription with qos: 1 and then disconnect, it will receive all the messages that were sent when it was offline. MQTT.js clients are clean by default, so you have to listen to the 'connect' event and do all your subscriptions again.

 

详细链接: https://github.com/mqttjs/MQTT.js/issues/151

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics