pomelo-androidclient icon indicating copy to clipboard operation
pomelo-androidclient copied to clipboard

How can I know pomeloclient fail connect to server

Open DLTech21 opened this issue 10 years ago • 3 comments

while the server restarted, the client how to know that it should reconnect

DLTech21 avatar Mar 13 '14 05:03 DLTech21

pomelo will emit disconnect event.

py8765 avatar Mar 14 '14 01:03 py8765

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

DLTech21 avatar Mar 14 '14 01:03 DLTech21

pomelo.init would fail and the error message is in its callback.

py8765 avatar Mar 14 '14 01:03 py8765