FlashSocket.IO icon indicating copy to clipboard operation
FlashSocket.IO copied to clipboard

Reconnection support?

Open daghendrik opened this issue 4 years ago • 0 comments

I am trying to use this client library with socket.io 2.3.0 and it mostly works fine, but because of the relatively low ping timeout of 5000ms, the client sometimes disconnects during brief periods of network lag/outage. A quick fix solution is to just increase the timeout to some large number (60000 ms or so), but that has other unfortunate consequences.

The official socket.io-client JS library solves this by implementing automatic reconnection. Is this something that could easily be added to this library? If so, could you give me some pointers on how to modify FlashSocket.IO to support it?

From https://socket.io/docs/: Unless instructed otherwise a disconnected client will try to reconnect forever, until the server is available again.

References:

  1. manager.js - Reconnection in Socket.IO-client JS

  2. Socket.IO Client "Manager" docs

daghendrik avatar Jun 01 '20 14:06 daghendrik