Skip to content

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