joewalnes / reconnecting-websocket

A small decorator for the JavaScript WebSocket API that automatically reconnects
MIT License
4.24k stars 970 forks source link

Added timeout property to "connecting" event #86

Open JonMcPherson opened 7 years ago

JonMcPherson commented 7 years ago

Knowing when the next reconnect attempt will be made is useful in some situations and simply for logging purposes. So why not include the timeout property in the "connecting" event.