ReconnectingConnectionType
Import
import { ReconnectingConnectionType } from "@hyper-fetch/sockets"
Source
Package
Preview
type ReconnectingConnectionType = {
connect: () => Promise<boolean>;
disconnect: () => Promise<boolean>;
dispose: () => void;
reconnect: () => Promise<void>;
}
Structure
ReconnectingConnectionType
| Name | Type | Description |
|---|---|---|
| connect | | Connects now - skipping a pending reconnection delay. Resolves with
|
| disconnect | | Closes the connection on purpose. It stays closed until
|
| dispose | | Removes the app manager listeners and the timers. The connection itself is closed with
|
| reconnect | | Replaces the connection with a new one, also after
|

