> ## 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

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)
