> For the complete documentation index, see [llms.txt](https://docs.aevo.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aevo.xyz/api-reference/websocket-api.md).

# WebSocket API

The lifecycle of a Websocket connection is as below:

1. Open a Websocket connection to `ws.aevo.xyz` (or `ws-testnet.aevo.xyz` for Testnet).
2. Authenticate for private operations.
3. Subscribe to a channel.
4. The connection will start streaming data from the subscription.
5. 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.
