HttpListenerWebSocketContext Class
.NET Framework 4.5
Provides access to information received by the HttpListener class when accepting WebSocket connections.
System.Object
System.Net.WebSockets.WebSocketContext
System.Net.WebSockets.HttpListenerWebSocketContext
System.Net.WebSockets.WebSocketContext
System.Net.WebSockets.HttpListenerWebSocketContext
Namespace: System.Net.WebSockets
Assembly: System (in System.dll)
The HttpListenerWebSocketContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CookieCollection | Gets the cookies received by the HttpListener object in the WebSocket opening handshake. (Overrides WebSocketContext.CookieCollection.) |
![]() | Headers | Gets the HTTP headers received by the HttpListener object in the WebSocket opening handshake. (Overrides WebSocketContext.Headers.) |
![]() | IsAuthenticated | Gets a value that indicates if the WebSocket client is authenticated. (Overrides WebSocketContext.IsAuthenticated.) |
![]() | IsLocal | Gets a value that indicates if the WebSocket client connected from the local machine. (Overrides WebSocketContext.IsLocal.) |
![]() | IsSecureConnection | Gets a value that indicates if the WebSocket connection is secured using Secure Sockets Layer (SSL). (Overrides WebSocketContext.IsSecureConnection.) |
![]() | Origin | Gets the value of the Origin HTTP header included in the WebSocket opening handshake. (Overrides WebSocketContext.Origin.) |
![]() | RequestUri | Gets the URI requested by the WebSocket client. (Overrides WebSocketContext.RequestUri.) |
![]() | SecWebSocketKey | Gets the value of the SecWebSocketKey HTTP header included in the WebSocket opening handshake. (Overrides WebSocketContext.SecWebSocketKey.) |
![]() | SecWebSocketProtocols | Gets the list of the Secure WebSocket protocols included in the WebSocket opening handshake. (Overrides WebSocketContext.SecWebSocketProtocols.) |
![]() | SecWebSocketVersion | Gets the list of sub-protocols requested by the WebSocket client. (Overrides WebSocketContext.SecWebSocketVersion.) |
![]() | User | Gets an object used to obtain identity, authentication information, and security roles for the WebSocket client. (Overrides WebSocketContext.User.) |
![]() | WebSocket | Gets the WebSocket instance used to send and receive data over the WebSocket connection. (Overrides WebSocketContext.WebSocket.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (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.) |
Windows 8, Windows Server 2012
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


