Delen via


ExtendedWebSocketAcceptContext Class

Definition

Caution

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Http.WebSocketAcceptContext.

Extends the WebSocketAcceptContext class with additional properties.

public ref class ExtendedWebSocketAcceptContext : Microsoft::AspNetCore::Http::WebSocketAcceptContext
public class ExtendedWebSocketAcceptContext : Microsoft.AspNetCore.Http.WebSocketAcceptContext
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Http.WebSocketAcceptContext.")]
public class ExtendedWebSocketAcceptContext : Microsoft.AspNetCore.Http.WebSocketAcceptContext
type ExtendedWebSocketAcceptContext = class
    inherit WebSocketAcceptContext
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Http.WebSocketAcceptContext.")>]
type ExtendedWebSocketAcceptContext = class
    inherit WebSocketAcceptContext
Public Class ExtendedWebSocketAcceptContext
Inherits WebSocketAcceptContext
Inheritance
ExtendedWebSocketAcceptContext
Attributes

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

The interval to send pong frames. This is a heart-beat that keeps the connection alive.

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
Obsolete.

This property is obsolete and has no effect.

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

Gets or sets the subprotocol being negotiated.

Applies to