# useRunningSessions

<!-- https://uncage.vercel.app/docs/api/react/functions/userunningsessions/ -->

```ts
function useRunningSessions(): object;
```

Defined in: react/src/hooks.ts:232

Active runs across all sessions on the server. Polls every 3 s while the document is visible and
refreshes on local run events, for as long as a component uses the hook.

## Returns

`object`

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `count` | `number` | react/src/hooks.ts:232 |
| `runs` | `object`[] | react/src/hooks.ts:232 |
