ReconnectingConnectionOptionsType
Import
import { ReconnectingConnectionOptionsType } from "@hyper-fetch/sockets"
Source
Package
Preview
type ReconnectingConnectionOptionsType<Adapter> = {
autoConnect?: boolean;
bindings: ReturnType<typeof getAdapterBindings>;
open: (attempt: ConnectionAttemptType<Adapter>) => ConnectionTransportType | null;
shouldReconnect?: ShouldReconnectType;
}
Structure
ReconnectingConnectionOptionsType
| Name | Type | Description |
|---|---|---|
| autoConnect | | Connect when the engine is created. |
| bindings | | Bindings of the adapter's connector |
| open | | Opens the transport of an attempt. Return
|
| shouldReconnect | | The protocol's default for retried closes, e.g. its fatal close codes. The socket's
|

