reconnecting-websocket
reconnecting-websocket copied to clipboard
Provide timestamp of next connection attempt
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).
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?
@pladaria It would solve my problem.