Skip to main content
Before it closes a connection, the server sends a frame that names the reason: an error frame, or a reconnect frame before a restart.
The same value is the close reason. Like every error frame, it carries the connectionId of the connection. A code without a frame, such as 1006, means the connection was cut: reconnect with backoff.

4002

Apexium closes a connection whose send buffer passes 4 MB, or stays not empty for more than 5 seconds. The other clients keep receiving. Your client may see 1006 instead of 4002: the close frame waits behind the full buffer, and the connection is cut before it arrives. Treat a 1006 that follows a burst of traffic as a 4002. After either, reload the feed channels from /v1/{lang}: some changes were not delivered. See Feed channels for how to keep up.

4004

The fixture limit counts fixtureIds only; sportIds and tournamentIds do not count. It applies at login and on every subscribe that adds fixtures. A refused subscribe keeps nothing of the new selection.

Refused at connection time

Some refusals come before the WebSocket opens, as an HTTP response to the upgrade:

Failed logins

Failed logins count with failed REST authentications: after 20 within one minute from the same address, connections from that address are refused until the minute ends. See Limits.