WebsocketAdapterOptionsType
Import
import { WebsocketAdapterOptionsType } from "@hyper-fetch/sockets"
Source
Package
Preview
type WebsocketAdapterOptionsType = {
autoConnect?: boolean;
heartbeat?: boolean;
heartbeatMessage?: string;
pingTimeout?: number;
pongTimeout?: number;
protocols?: string[];
}
Structure
WebsocketAdapterOptionsType
| Name | Type | Description |
|---|---|---|
| autoConnect | | |
| heartbeat | | |
| heartbeatMessage | | |
| pingTimeout | | |
| pongTimeout | | |
| protocols | |