Skip to content

Reconnect Events stop firing once the socket is disconnected and connected again. #442

Open
@njethani

Description

@njethani

On initial connection using socket.connect:

  1. Socket is connected
  2. Receives all events.
  3. If the server goes down, then the socket keeps on trying to reconnect and gets connected as soon as the server is back up.

Everything looks fine till here. Now closed socket using socket.disconnect() and connected back using socket.connect(), I see the following behavior:

  1. Socket is connected
  2. Receives all events.
  3. If the server goes down, then the socket does not try to reconnect and instead a disconnect event is received.

I also tried enabling 'ForceNew' option and still doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions