Open ashishvaghasiya-digicorp opened 7 years ago
I have the same question. After the MQTT server restarts, how does the client recognize that. I'd assume, that the client would see that there are no more heartbeat messages any more (becuase the connection dropped). But what exactly does the mqtt-client lib then do? Is there any callback that I can subscribe to?
@Doogiemuc
i have solution of this problem.
in "onConnectionLost" event you get connection lost information on client side
Hi , where you got "onConnectionLost" event in MQTT client side ? We are facing same issue .Whenever a broker is restarted ,in shared subscription some topics we get and some not .sometimes we dont get any messages .
Thus one of the solution is to restart complete client process once broker restarts .but to know that ,we need to implement something similar and please note we dont get any disconnect /error message even if broker restarts.
After restarting mqtt server client not getting the message. how to handle this.