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

Configurable reconnecting options #16

Open
toodak opened this issue Apr 10, 2018 · 1 comment
Open

Configurable reconnecting options #16

toodak opened this issue Apr 10, 2018 · 1 comment

Comments

@toodak
Copy link

toodak commented Apr 10, 2018

Hello, is possible to make these variables configurable by options, when new Client() is called?

From Client.js:

            var maxRetryDelay = 300000;
            var initialRetryDelay = 1500;
            var retryDelayGrowth = 1.5;
            var maxRetries = 550;

suggested changes:

        var options = this.options;
        this.messages = this.transport.retryWhen(function (attempts) {
            var maxRetryDelay = options.maxRetryDelay || 300000;
            var initialRetryDelay = options.initialRetryDelay || 1500;
            var retryDelayGrowth = options.retryDelayGrowth || 1.5;
            var maxRetries = options.maxRetries || 550;

@gDev95
Copy link

gDev95 commented Jun 20, 2018

Hey @davidwdan I am currently interested in handling reconnecting as described in the post, have you had the chance to look at it ??

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

2 participants