socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

socket io disconnected, but the client didn't know

Open joy-jianqiang opened this issue 11 years ago • 2 comments

if the screen is locked more than 15 minutes, the server side found the socket.io is disconnect, but the client side would not found it, i receive ACTION_TIME_TICK in app, and log out the socket status, it always return true with mSocket.connected(), is there a solution? sorry for bad English

joy-jianqiang avatar Aug 14 '15 10:08 joy-jianqiang

@joy-jianqiang Are you using partial wake lock?

Maybe it's a possible duplicate of #84

wedneyyuri avatar Aug 14 '15 11:08 wedneyyuri

@wedneyyuri I didn't use a partial wake lock, i will try it, but in hope my app can receive the chat message when the app is in background, seems i do not how to use the partial exactly. And thanks for advice.

joy-jianqiang avatar Aug 15 '15 01:08 joy-jianqiang