Redigera

Dela via


ClientWebSocketOptions.DangerousDeflateOptions Property

Definition

Gets or sets the options for the per-message-deflate extension. When present, the options are sent to the server during the handshake phase. If the server supports per-message-deflate and the options are accepted, the WebSocket instance will be created with compression enabled by default for all messages.

Be aware that enabling compression makes the application subject to CRIME/BREACH type of attacks. It is strongly advised to turn off compression when sending data containing secrets by specifying DisableCompression flag for such messages.

public:
 property System::Net::WebSockets::WebSocketDeflateOptions ^ DangerousDeflateOptions { System::Net::WebSockets::WebSocketDeflateOptions ^ get(); void set(System::Net::WebSockets::WebSocketDeflateOptions ^ value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Net.WebSockets.WebSocketDeflateOptions? DangerousDeflateOptions { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.DangerousDeflateOptions : System.Net.WebSockets.WebSocketDeflateOptions with get, set
Public Property DangerousDeflateOptions As WebSocketDeflateOptions

Property Value

Attributes

Applies to