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

Added option for maxReconnectInterval #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added option for maxReconnectInterval #35

wants to merge 3 commits into from

Conversation

JamesThorpe
Copy link
Contributor

Added an extra option to specify the maximum amount of time to wait
before attempting a reconnect. Defaults to -1, to keep the current
behaviour.

Added an extra option to specify the maximum amount of time to wait
before attempting a reconnect.  Defaults to -1, to keep the current
behaviour.
@joewalnes
Copy link
Owner

Thanks.

Rather than -1, I think a good sensible default will be something like 30000. Seems like more useful behavior and it makes it simpler for users to understand (no need to worry about magic numbers).

Please include the description of this option in the header of the JS and README

@JamesThorpe
Copy link
Contributor Author

Great, will do. Also noticed that it may need to be documented in the .ts file as well?

@joewalnes
Copy link
Owner

uhhh actually I forgot about the .ts file. Yeah, that needs to be updated too. In fact, some other recent changes have been left out from that file. I suggest doing that as a separate pull-request. If you have questions about the .ts stuff, ask @drewnoakes

Now defaults to 30,000.  Removed the -1 magic number.  Added
documentation on use.
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

Successfully merging this pull request may close these issues.

2 participants