error frame, or a reconnect frame before a restart.
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 see1006 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.