Skip to content

No automatic reconnect attempt if connection never happened #482

@feklee

Description

@feklee

Scenario:

  1. server down
  2. on client: socket = io.connect(host); socket.emit('event');
  3. server up

Now, nothing happens. There is no automatic reconnect attempt, even if the server has been started only seconds after running io.connect on the client.

A manual solution (workaround) could be based on repeatedly calling socket.socket.reconnect. On success, this also emits the above 'event'.

Given the current specification of the reconnect client option, this issue should be considered a feature request:

reconnect defaults to true

Should Socket.IO automatically reconnect when it detects a dropped connection or timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions