Disconnect Reasons

Sometimes, the server will close the WebSocket connection. To see the exact reason for why the connection has been closed, the server will provide a specific status code.

Status codes

  • 1000 - Normal close, same as in the specifications for the WebSocket Protocol. This might be a result of a LogoutRequest.

  • 4101 - The client connected from another device and this connection has been closed. The server only allows one connection at once.

  • 4102 - The maximum number of messages waiting to be sent to the client is exceeded, so the connection will be closed because the client cannot consume messages in a certain amount of time.