GraphqlWsKeepAliveOptionsType
Keep-alive of the connection. The client sends
ping
when the connection is quiet and treats it as lost when the
pong
does not arrive in time - the only way to notice a connection that died without a close, e.g. behind a proxy.
Import
import { GraphqlWsKeepAliveOptionsType } from "@hyper-fetch/graphql"
Source
Package
Preview
type GraphqlWsKeepAliveOptionsType = {
enabled: boolean;
intervalMs?: number;
pongTimeoutMs?: number;
}
Structure
GraphqlWsKeepAliveOptionsType
| Name | Type | Description |
|---|---|---|
| enabled | | |
| intervalMs | | How long the connection can be quiet before the client sends
|
| pongTimeoutMs | | How long the client waits for
|
