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

# connected

> The connected event fires when the WebSocket connection to the SIP server is established.

Emitted when the WebSocket connection to the SIP server is established. This event is emitted before SIP registration — wait for the [`registered`](/click-to-call/sdk/event-reference/registered) event before making calls.

## Category

Connection

## Callback Parameters

None.

## Example

```typescript theme={null}
client.on('connected', () => {
  console.log('WebSocket connection established');
});
```

## More Information

* [connecting](/click-to-call/sdk/event-reference/connecting)
* [registered](/click-to-call/sdk/event-reference/registered)
* [disconnected](/click-to-call/sdk/event-reference/disconnected)
