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

# connecting

> The connecting event fires when Click To Call starts establishing a WebSocket connection to the SIP server.

Emitted when the SDK begins establishing a WebSocket connection to the SIP server.

## Category

Connection

## Callback Parameters

None.

## Example

```typescript theme={null}
client.on('connecting', () => {
  console.log('Connecting to SIP server...');
});
```

## More Information

* [connected](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/connected.md)
* [registered](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/registered.md)
* [connect](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.