Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guanzo opened this issue Nov 20, 2020 · 0 comments
Open

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

guanzo opened this issue Nov 20, 2020 · 0 comments

Comments

@guanzo
Copy link

guanzo commented Nov 20, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant