콘텐츠로 이동
한국어

DEFAULT_WEBSOCKET_MAX_FRAME_BYTES

이 콘텐츠는 아직 번역되지 않았습니다.

const DEFAULT_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.