HttpListenerWebSocketContext Class
Provides access to information received by the HttpListener class when accepting WebSocket connections.
Assembly: System (in System.dll)
System.Net.WebSockets::WebSocketContext
System.Net.WebSockets::HttpListenerWebSocketContext
| 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


