HttpListenerWebSocketContext HttpListenerWebSocketContext HttpListenerWebSocketContext HttpListenerWebSocketContext Class

Definition

Provides access to information received by the HttpListener class when accepting WebSocket connections.

public ref class HttpListenerWebSocketContext : System::Net::WebSockets::WebSocketContext
public class HttpListenerWebSocketContext : System.Net.WebSockets.WebSocketContext
type HttpListenerWebSocketContext = class
    inherit WebSocketContext
Public Class HttpListenerWebSocketContext
Inherits WebSocketContext
Inheritance
HttpListenerWebSocketContextHttpListenerWebSocketContextHttpListenerWebSocketContextHttpListenerWebSocketContext

Constructors

HttpListenerWebSocketContext() HttpListenerWebSocketContext() HttpListenerWebSocketContext() HttpListenerWebSocketContext()

Properties

CookieCollection CookieCollection CookieCollection CookieCollection

Gets the cookies received by the HttpListener object in the WebSocket opening handshake.

Headers Headers Headers Headers

Gets the HTTP headers received by the HttpListener object in the WebSocket opening handshake.

IsAuthenticated IsAuthenticated IsAuthenticated IsAuthenticated

Gets a value that indicates if the WebSocket client is authenticated.

IsLocal IsLocal IsLocal IsLocal

Gets a value that indicates if the WebSocket client connected from the local machine.

IsSecureConnection IsSecureConnection IsSecureConnection IsSecureConnection

Gets a value that indicates if the WebSocket connection is secured using Secure Sockets Layer (SSL).

Origin Origin Origin Origin

Gets the value of the Origin HTTP header included in the WebSocket opening handshake.

RequestUri RequestUri RequestUri RequestUri

Gets the URI requested by the WebSocket client.

SecWebSocketKey SecWebSocketKey SecWebSocketKey SecWebSocketKey

Gets the value of the SecWebSocketKey HTTP header included in the WebSocket opening handshake.

SecWebSocketProtocols SecWebSocketProtocols SecWebSocketProtocols SecWebSocketProtocols

Gets the list of the Secure WebSocket protocols included in the WebSocket opening handshake.

SecWebSocketVersion SecWebSocketVersion SecWebSocketVersion SecWebSocketVersion

Gets the list of sub-protocols requested by the WebSocket client.

User User User User

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

WebSocket WebSocket WebSocket WebSocket

Gets the WebSocket instance used to send and receive data over 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