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

Provide timestamp of next connection attempt #38

Open
remko opened this issue Oct 23, 2017 · 2 comments
Open

Provide timestamp of next connection attempt #38

remko opened this issue Oct 23, 2017 · 2 comments

Comments

@remko
Copy link

remko commented Oct 23, 2017

I'd like to inform the user that there's a connectivity problem, and when the next attempt will be to restore the connection. To do that, I'd have to know when the websocket will attempt to reconnect (e.g. through a timestamp property on the ReconnectingWebSocket object that tells when the next connection attempt will be).

@pladaria
Copy link
Owner

Interesting. Maybe a better idea would be to accept via constructor a function getReconnectingDelay(retryNumber), so you can have full control of that.

Would that fit your needs?

@remko
Copy link
Author

remko commented Apr 4, 2018

@pladaria It would solve my problem.

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

No branches or pull requests

2 participants