Skip to content

Accept socketcluster-client options for the scc-broker socket #8

Description

@guanzo

Would be nice if I could configure autoReconnectOptions for the scc-broker socket, here:

let client = socketClusterClient.create(connectOptions);

.. from the socketcluster boilerplate repo, here: https://github.com/SocketCluster/socketcluster/blob/7b1d97cbcd9d37ae51eb9305bbaedfac774622b8/app/server.js#L99-L113

The default options take far too long to reconnect, starting at 10s with a max of 60s. I need my scc-workers to reconnect much faster.

Might as well allow the entire options object to be passed somehow, instead of just autoReconnectOptions. I'd rather not maintain a fork in order to do this. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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