socketio / socket.io-client-java

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.
https://socketio.github.io/socket.io-client-java/installation.html
Other
5.33k stars 974 forks source link

Client timeout also triggers Socket.EVENT_CONNECT_ERROR event (Android 7.1.1) #414

Open thully opened 7 years ago

thully commented 7 years ago

While using the socket.io-client-java package in an Android app running on the emulator, I've encountered an issue with the timeout event. When using timeout values under 10000 ms (higher values aren't working at all in the timeout handler, per #413), on timeout I get both a Socket.EVENT_CONNECT_TIMEOUT event as well as a Socket.EVENT_CONNECT_ERROR event, the latter of which has the following text:

io.socket.client.SocketIOException: timeout

This event seems redundant with the EVENT_CONNECT_TIMEOUT event, and seems like it should be suppressed.

ahmadtahir1919 commented 6 years ago

Socket disconnect if Android mobile is in PowerSaving Mode If mobile is in powerSaving mode Socket Always trigle on reconnecting event 1:-Code is in service 2:-If turn Off the powerSaving mode Socket working fine Any Solution?