moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

how to reconnect when mqtt server restart? #647

Closed ashishvaghasiya closed 6 years ago

ashishvaghasiya commented 7 years ago

using mosca and mqtt nodejs package After restarting mqtt server client not getting the message. how to handle this.

ashishvaghasiya commented 6 years ago

i got solution of this problem.

in "onConnectionLost" event you get connection lost information on client side