TrpcKeepAliveOptionsType
Keep-alive of the tRPC WebSocket protocol. The client sends
PING
when the connection is quiet and treats it as
lost when the
PONG
does not arrive in time.
Import
import { TrpcKeepAliveOptionsType } from "@hyper-fetch/trpc"
Source
Package
Preview
type TrpcKeepAliveOptionsType = {
enabled: boolean;
intervalMs?: number;
pongTimeoutMs?: number;
}
Structure
TrpcKeepAliveOptionsType
| Name | Type | Description |
|---|---|---|
| enabled | | |
| intervalMs | | How long the connection can be quiet before the client sends
|
| pongTimeoutMs | | How long the client waits for
|

