Skip to content

Channel reconnect timer on socket open? #3139

@sb8244

Description

@sb8244

Environment

  • Phoenix.js version: master

Expected behavior

When a socket opens, the channels would immediately attempt to connect in order to provide maximum availability of message processing.

Actual behavior

When a socket opens, the channels do not immediately attempt to connect. The channels follow the same reconnection algorithm provided by the socket.

Ideas

I see two solutions that could solve this problem. The first is to reset all channel reconnect timers onOpen of the socket. The second is to provide a custom reconnection algorithm for channels. I don't see channels as hitting the server when they attempt to connect, so it should be fairly cheap to attempt versus the socket.

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