pomelo-androidclient
pomelo-androidclient copied to clipboard
How can I know pomeloclient fail connect to server
while the server restarted, the client how to know that it should reconnect
pomelo will emit disconnect event.
one more situation: while the mobile disconnects the wi-fi for a while, so the pomelo is disconnected, but there is no api such as pomelo.isconnect or callback to tell it is fail to connect the server
pomelo.init would fail and the error message is in its callback.