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

# disconnect

Disconnects from the SIP server. This method stops audio playback, terminates any active call sessions, and closes the SIP WebSocket connection.

## Signature

```typescript theme={null}
await client.disconnect();
```

## Parameters

None.

## Returns

`Promise<void>`

## Throws

An error if the disconnection process encounters an issue, such as a failure to stop the SIP connection.

## Example

```typescript theme={null}
await client.disconnect();
console.log('Disconnected from SIP server');
```

## More Information

* [connect](/click-to-call/sdk/api-reference/connect)
* [destroy](/click-to-call/sdk/api-reference/destroy)
* [disconnected](/click-to-call/sdk/event-reference/disconnected) event
