NetEase / pomelo-androidclient

java&android client for pomelo
83 stars 45 forks source link

How can I know pomeloclient fail connect to server #7

Open DLTech21 opened 10 years ago

DLTech21 commented 10 years ago

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

py8765 commented 10 years ago

pomelo will emit disconnect event.

DLTech21 commented 10 years ago

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

py8765 commented 10 years ago

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