type
WebSocketOptionsCompression
type WebSocketOptionsCompression =
- perMessageDeflate?: boolean
Whether to offer the
permessage-deflateextension in the WebSocket upgrade request. Passfalseto suppress theSec-WebSocket-Extensionsheader entirely — matching thewspackage'sperMessageDeflate: falseoption.Defaults to
true(the upgrade request advertisespermessage-deflate; client_max_window_bits). Any falsy value (false,null,0,"", explicitundefined) disables the offer.