WebSocketContext WebSocketContext WebSocketContext 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
WebSocketContextWebSocketContextWebSocketContextWebSocketContext
Derived

Constructors

WebSocketContext() WebSocketContext() WebSocketContext() WebSocketContext()

Creates an instance of the WebSocketContext class.

Properties

CookieCollection CookieCollection CookieCollection CookieCollection

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

Headers Headers Headers Headers

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

IsAuthenticated IsAuthenticated IsAuthenticated IsAuthenticated

Whether the WebSocket client is authenticated.

IsLocal IsLocal IsLocal IsLocal

Whether the WebSocket client connected from the local machine.

IsSecureConnection IsSecureConnection IsSecureConnection IsSecureConnection

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

Origin Origin Origin Origin

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

RequestUri RequestUri RequestUri RequestUri

The URI requested by the WebSocket client.

SecWebSocketKey SecWebSocketKey SecWebSocketKey SecWebSocketKey

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

SecWebSocketProtocols SecWebSocketProtocols SecWebSocketProtocols SecWebSocketProtocols

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

SecWebSocketVersion SecWebSocketVersion SecWebSocketVersion SecWebSocketVersion

The list of subprotocols requested by the WebSocket client.

User User User User

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

WebSocket WebSocket WebSocket WebSocket

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to