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

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

Open thully opened this issue 8 years ago • 1 comments

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.

thully avatar May 10 '17 14:05 thully

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?

ahmadtahir1919 avatar Feb 02 '18 12:02 ahmadtahir1919