Redigera

Dela via


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
HttpListenerWebSocketContext

Properties

CookieCollection

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

Headers

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

IsAuthenticated

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

IsLocal

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

IsSecureConnection

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

Origin

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

RequestUri

Gets the URI requested by the WebSocket client.

SecWebSocketKey

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

SecWebSocketProtocols

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

SecWebSocketVersion

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

User

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

WebSocket

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