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

# deviceRecovered$

> Observable that emits when the SDK auto-switches a device.

```ts
get deviceRecovered$(): Observable<DeviceRecoveryEvent>
```

Observable that emits when the SDK auto-switches a device.

Observable that emits when the SDK auto-switches a device due to
disconnect, reconnect, or recovery.

## **Examples**

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