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

Changing the retry timeout value once disconnected #836

Open
mikelmao opened this issue Oct 2, 2024 · 0 comments
Open

Changing the retry timeout value once disconnected #836

mikelmao opened this issue Oct 2, 2024 · 0 comments

Comments

@mikelmao
Copy link

mikelmao commented Oct 2, 2024

Do you want to request a feature or report a bug?
Request a feature

What is the current behavior?
Setting unavailableTimeout in the options does nothing

What is the expected behavior?
There is a value unavailableTimeout in the options, of which is unclear what it actually does. I was expecting it to allow me to set the retry-timeout time (by default seems to be 15 seconds) but that is not the case. After going deeper in to the code base, it seems there is a default strategy which sets a 15000ms timeout variable.

default_strategy.ts

var timeouts = {
    loop: true,
    timeout: 15000,
    timeoutLimit: 60000
  };

I need a way to be able to put the retry to about 2 seconds at most, it does not seem to be possible currently due to this value being hardcoded in to the default strategy.

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