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

# checkConnectionOnVisible

> Whether to check peer connection health when the page becomes visible.

```ts
get checkConnectionOnVisible(): boolean
set checkConnectionOnVisible(value: boolean)
```

Whether to check peer connection health when the page becomes visible.

## **Parameters**

If `true`, checks connectivity when the tab or window becomes visible again.

## **Examples**

```ts
// Read
console.log(client.preferences.checkConnectionOnVisible);

// Write
client.preferences.checkConnectionOnVisible = true;
```