DEFAULT_WEBSOCKET_MAX_FRAME_BYTES
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
constDEFAULT_WEBSOCKET_MAX_FRAME_BYTES:number
Defined in: src/http/websocket/types.ts:47
Default cap on a single inbound WebSocket frame — 1 MiB.
Why this exists (security): a malicious or compromised peer can send arbitrarily-large frames. Without a cap, a stalled downstream consumer plus one 100-MiB frame exhausts the process. The cap is enforced on the raw frame before the codec decodes it.
