> ## Documentation Index
> Fetch the complete documentation index at: https://xchangeapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Example implementation

To help you get started quickly, we provide complete client examples for connecting to our WebSocket API, handling authentication, subscribing to channels, and parsing the optimized message formats.

Choose your preferred environment below:

<CardGroup cols={2}>
  <Card title="JavaScript" icon="js" href="/docs/websocket/example-implementation/javascript">
    Browser-native implementation using the `WebSocket` API.
  </Card>

  <Card title="NodeJS" icon="node" href="/docs/websocket/example-implementation/nodejs">
    Server-side implementation using the `ws` library.
  </Card>
</CardGroup>
