Open DLTech21 opened 10 years ago
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.
while the server restarted, the client how to know that it should reconnect