Quick inspection with JSON mode
By default, the connection starts in JSON mode. In this mode, the server sends text frames with order book diffs for subscribed coins. Example: subscribe to BTC order book diffs.- Block frames
- Ping frames
- Timing metrics
- Mempool transactions
Production flow with binary mode
Production clients should use the following connection sequence:- Connect to the WebSocket endpoint.
- Send
espto upgrade to binary mode. - Send
primeto enable pings, metrics, and server error events. - Subscribe to required coins or streams.
- Read frames continuously.
- On disconnect, reconnect and repeat the full sequence.