When connecting to skygear-server in docker and kill the docker container, the socket closed function get called multiple time, however the first attempt of reconnecting would never success, while it blocks the subsequent attempts.
Clearing the state would make the websocket return to the reconnect flow, and when server restarted, the websocket would reconnect normally. However, socket did close would still be called multiple times.
When connecting to skygear-server in docker and kill the docker container, the socket closed function get called multiple time, however the first attempt of reconnecting would never success, while it blocks the subsequent attempts.
Clearing the state would make the websocket return to the reconnect flow, and when server restarted, the websocket would reconnect normally. However, socket did close would still be called multiple times.
connect oursky/skygear-support#104