API reference@melon-db/db-react
createFetchNetworkMonitor
@melon-db/db-react — createFetchNetworkMonitor
@melon-db/db-react API Reference
Function: createFetchNetworkMonitor()
createFetchNetworkMonitor(
baseUrl,options?):NetworkMonitor
Defined in: network-monitor.ts:6
Creates a network monitor that pings a URL and falls back to navigator.onLine on web.
Parameters
| Parameter | Type |
|---|---|
baseUrl | string |
options? | { intervalMs?: number; } |
options.intervalMs? | number |
Returns
NetworkMonitor
