joewalnes / reconnecting-websocket

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

Pausing to reconnect websocket #96

Open shubham-aneja opened 6 years ago

shubham-aneja commented 6 years ago

As I leave my system idle/hibernate. Following error comes in the console. core.es5.js:1020 ERROR INVALID_STATE_ERR : Pausing to reconnect websocket.

After the error, I never get any update from the socket until I refresh the tab.

zszep commented 2 years ago

Ever solved this issue?

BenasPaulikas commented 1 month ago

Ever solved this issue?

This exception happens when data is being sent but socket havent(?) connected yet.

https://github.com/joewalnes/reconnecting-websocket/blob/master/reconnecting-websocket.js#L309