Comment on page
- 1.Authenticate, establish a heartbeat and Subscribe to the
trade_tapeJSON-RPCoverWebSockets Notification Channels.
WebSocket messages contain sequence numbers to help clients identify if they have missed any messages during temporary disconnections or network errors. The sequence number is included in the WebSocket messages under the
WebSocket messages now include an additional
metafield that contains the following properties:
Here's an example of a WebSocket message with sequence numbers:
Clients should monitor the sequence numbers of the incoming messages to ensure they have not missed any messages. If a client detects a gap in the sequence numbers, it may have missed one or more messages and should take appropriate action, such as refreshing data from REST.
Sequences increase monotonically within the context of a sequence group. Sequences are only relevant within a sequence group, which represents a subscribed channel. Sequences may be re-used between sequence groups.
While messages are sent ordered according to their sequences, sequences are not guaranteed not to repeat.