Share via


OwinWebSocketAcceptContext Class

Definition

OWIN WebSocket accept context.

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

Constructors

OwinWebSocketAcceptContext()

Initializes a new instance of OwinWebSocketAcceptContext.

OwinWebSocketAcceptContext(IDictionary<String,Object>)

Initializes a new instance of OwinWebSocketAcceptContext.

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.

(Inherited from WebSocketAcceptContext)
Options

Gets OWIN WebSocket options.

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