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

# isConnected

> Checks whether the client is connected and registered with the SIP server.

Checks whether the client is connected and registered with the SIP server.

## Signature

```typescript theme={null}
const connected = client.isConnected();
```

## Parameters

None.

## Returns

`boolean`. `true` if the client is connected and registered, `false` otherwise. For endpoints that don't require SIP registration, refer to the note below.

> [!NOTE]
>
> For endpoints that don't require SIP registration, `isConnected()` returns `false` even after `connect()` has finished. For these endpoints, track the connection with the [`connected`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/connected) and [`disconnected`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/disconnected) events.

## Example

```typescript theme={null}
if (client.isConnected()) {
  console.log('Client is ready to make calls');
  await client.startCall();
} else {
  console.log('Client is not connected');
  await client.connect();
}
```

## More Information

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


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