The lifecycle of a Websocket connection is as below:
- Open a Websocket connection to
- 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
pingoperation. Sending any other operation will also refresh the connection.