Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebSocketDeflateOptions.CompressionLevel Property

Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9147)

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.

In This Article
  • CompressionLevel
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies