ExtendedWebSocketAcceptContext Class

Definition

public ref class ExtendedWebSocketAcceptContext : Microsoft::AspNetCore::Http::WebSocketAcceptContext
public class ExtendedWebSocketAcceptContext : Microsoft.AspNetCore.Http.WebSocketAcceptContext
type ExtendedWebSocketAcceptContext = class
    inherit WebSocketAcceptContext
Public Class ExtendedWebSocketAcceptContext
Inherits WebSocketAcceptContext
Inheritance
ExtendedWebSocketAcceptContext

Constructors

ExtendedWebSocketAcceptContext()

Properties

DangerousEnableCompression

Enables support for the 'permessage-deflate' WebSocket extension.

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

(Inherited from WebSocketAcceptContext)
DisableServerContextTakeover

Disables server context takeover when using compression. This setting reduces the memory overhead of compression at the cost of a potentially worse compression ratio.

(Inherited from WebSocketAcceptContext)
KeepAliveInterval
KeepAliveTimeout

The time to wait for a Pong frame response after sending a Ping frame. If the time is exceeded the websocket will be aborted.

(Inherited from WebSocketAcceptContext)
ReceiveBufferSize
ServerMaxWindowBits

Sets the maximum base-2 logarithm of the LZ77 sliding window size that can be used for compression. This setting reduces the memory overhead of compression at the cost of a potentially worse compression ratio.

(Inherited from WebSocketAcceptContext)
SubProtocol

Applies to