Closed rclai closed 8 years ago
Ah I just found one part of the issue. When the MQTT server is down and client reconnection is happening, once the server is back up, and the reconnection is successful, that's when message
event no longer emits anything anymore.
@rclai I did not fully understand your first post.
your second post however is a clear case: you made the very common mistake of calling subscribe
serially after connect
. Instead, you should subscribe
in the on('connect')
callback; then it will resubscribe after every reconnect.
@rclai as @psorowka stated.
Can you please provide steps to reproduce, all the time? Can you also verify if this happens only in the browser or also in Node.js?
Closing for lack of activity, feel free to reopen.
The object emitted has the packet with qos 0 instead of qos 1. For some reason sometimes this goes from 0 to 1 and sometimes the event is not emitted at all.
I'm testing with mosca server.