WebSocketContext Class

Definition

Used for accessing the information in the WebSocket handshake.

public ref class WebSocketContext abstract
public abstract class WebSocketContext
type WebSocketContext = class
Public MustInherit Class WebSocketContext
Inheritance
WebSocketContext
Derived

Constructors

WebSocketContext()

Creates an instance of the WebSocketContext class.

Properties

CookieCollection

The cookies that were passed to the server during the opening handshake.

Headers

The HTTP headers that were sent to the server during the opening handshake.

IsAuthenticated

Whether the WebSocket client is authenticated.

IsLocal

Whether the WebSocket client connected from the local machine.

IsSecureConnection

Whether the WebSocket connection is secured using Secure Sockets Layer (SSL).

Origin

The value of the Origin HTTP header included in the opening handshake.

RequestUri

The URI requested by the WebSocket client.

SecWebSocketKey

The value of the SecWebSocketKey HTTP header included in the opening handshake.

SecWebSocketProtocols

The value of the SecWebSocketKey HTTP header included in the opening handshake.

SecWebSocketVersion

The list of subprotocols requested by the WebSocket client.

User

An object used to obtain identity, authentication information, and security roles for the WebSocket client.

WebSocket

The WebSocket instance used to interact (send/receive/close/etc) with the WebSocket connection.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to