# useReconnect

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

```ts
function useReconnect(): (opts?) => void;
```

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

Returns a function that restarts the event stream now (wire it to `AppState` 'active' in React
Native). A healthy live stream is kept (see `UncageClient.reconnect`); `{ force: true }` restarts
it anyway.

## Returns

(`opts?`) => `void`
