koush / AndroidAsync

Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads.
Other
7.52k stars 1.56k forks source link

Socket.io client timeout #63

Open wonderhero opened 11 years ago

wonderhero commented 11 years ago

Hi,

I am currently using the AndroidAsync library to developing Android app. I have a node.js socket.io server which has heartbeat timeout set at 280 secs, close timeout 120 secs, heartbeat interval 115 secs. However, every 60 secs my socket.io client will disconnect from the server. May I know if I should change any value in the library to accommodate this?

Thanks.

koush commented 10 years ago

The heartbeat used by AndroidAsync is derived from the value sent from the server:

heartbeat = Integer.parseInt(parts[1]) / 2 * 1000;
koush commented 10 years ago

which side is initiating the disconnect?