WebSocketClientOptions.DangerousDeflateOptions Property
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9119)
DangerousDeflateOptions
Gets or sets message deflate options (per-message-deflate extension). If specified, the deflate options are negotiated with the server. If the server accepts the extension, all messages sent to the server will be compressed. All compressed messages received from the server will be decompressed.
Using compression is dangerous, because it makes the application vulnerable to CRIME/BREACH type of attack. The DisableCompression flag can be used to disable compression when sending messages containing sensitive data using the Send(ArraySegment<Byte>, WebSocketMessageType, WebSocketMessageFlags) method.
Declaration
public WebSocketDeflateOptions DangerousDeflateOptions { get; set; }
Property Value
Type | Description |
---|---|
WebSocketDeflateOptions |