Skip to content

useReconnect

View as Markdown
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.

(opts?) => void