WebSocketDeflateOptions.CompressionLevel Property
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9083)
CompressionLevel
Gets or sets the compression level to be used for compressing outgoing WebSocket messages. Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). Default value is 4.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
0 means no compression; 1 is the fastest compression (but the worst compression ratio); 9 is the slowest compression (but the best compression ratio).
When ClientMaxWindowBits is 8, setting the CompressionLevel to 9 and 8 has same effect.