When I restart my web socket server, the Connection on the client emits a state event with the newState set to "disconnected", which according to the documentation means:
'disconnected' Connection is closed, but it will reconnect automatically
However, the connection does not reconnect. Given that the socket which was passed to the Connection's constructor is now closed, I don't understand how reconnection would be possible. Don't we need a new WebSocket? What's going on here?
When I restart my web socket server, the
Connectionon the client emits astateevent with thenewStateset to"disconnected", which according to the documentation means:However, the connection does not reconnect. Given that the socket which was passed to the
Connection's constructor is now closed, I don't understand how reconnection would be possible. Don't we need a new WebSocket? What's going on here?