When disconnecting clients from WebSockets, PandaScore sends a status code that allows your application to understand why the connection was closed.
PandaScore opens a WebSocket for each match that is covered with live data. When the match finishes, the WebSocket will close with the
When the WebSocket closes because of a client error, an error code within the
4xxx range will be sent.
When the WebSocket closes because of a server error, an error code within the
1xxx range will be sent. This code will be different from
1000, which is reserved for normal closure. These only happen because of issues on PandaScore's servers and should be rare.
Updated 2 months ago