Skip to main content

Variable: DEFAULT_WS_OPTIONS

const DEFAULT_WS_OPTIONS: Readonly<Required<Pick<WebSocketOptions, "maxPayloadLength" | "idleTimeout" | "maxBackpressure">>>

Defined in: service-core/src/http/types.ts:189

The WebSocket defaults used by both the uWS and Bun routers when a route doesn't override them. These match uWebSockets.js' own defaults, so a route behaves the same on both runtimes (Bun's own defaults are far larger, e.g. a 16 MiB payload limit).