joewalnes / reconnecting-websocket

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

Issue on switching from WiFi to Data Plan #65

Open azn1viet opened 8 years ago

azn1viet commented 8 years ago

It works normally until switching from WiFi to Data Plan, it threw the error form the line:

 throw 'INVALID_STATE_ERR : Pausing to reconnect websocket';

the INVALID_STATE_ERR saying "Still in CONNECTING state." so it paused the reconnecting method.