> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# isConnected$

> Observable that emits when the connection state changes.

```ts
get isConnected$(): Observable<boolean>
```

Observable that emits when the connection state changes.

## isConnected

```ts
get isConnected(): boolean
```

Whether the client is currently connected.

## **Examples**

```ts
client.isConnected$.subscribe((isConnected) => {
  console.log('isConnected:', isConnected);
});
```