The API now runs on several servers and restarts them one at a time on a deploy, so REST calls keep being answered throughout. A WebSocket on a server that restarts is closed with code 1012 and the reason “server restarting; reconnect”: reconnect at once with a new ticket and subscribe again with the last seq you hold — the next connection lands on a server that is up. On the Business plan a replay is served when the same server answers, otherwise a fresh snapshot; seq values are opaque and may be lower or higher than before after a reconnect (a snapshot or subscribed frame starts the count again). The plan’s concurrent-connection limit (1013) counts your connections on every server. The official SDKs reconnect on 1012 without their backoff. No frame changes; the WebSocket protocol stays 4.
| What | Before | Now |
|---|---|---|
| WebSocket close 1012 | not sent (a restart closed the connection without a code, 1005, or dropped it) | “server restarting; reconnect” — reconnect at once and resubscribe with your last seq |
| WebSocket seq after a reconnect | higher than any seq before | opaque: may be lower or higher; a snapshot or subscribed frame restarts it |
| WebSocket close 1013 | counted per server | counts the account’s connections on every server |