webSocketCompression property

bool webSocketCompression
getter/setter pair

Whether native WebSocket connections negotiate per-message compression.

Defaults to true, preserving existing behavior. Disable this to reduce memory and codec overhead at the cost of sending more bytes for compressible traffic. Browser WebSocket APIs do not expose compression controls, so this option has no effect on web builds.

Implementation

bool webSocketCompression;