The lifecycle of a Websocket connection is as below:
- Open a Websocket connection to
ws.aevo.xyz
(orws-testnet.aevo.xyz
for Testnet). - Authenticate for private operations.
- Subscribe to a channel.
- The connection will start streaming data from the subscription.
- Connection will time out after 15 minutes of inactivity. To keep the connection alive, perform a
ping
operation. Sending any other operation will also refresh the connection.