Skip to content

Reconnection support? #8

@daghendrik

Description

@daghendrik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions