HttpListenerWebSocketContext Properties

.NET Framework 4.5

The HttpListenerWebSocketContext type exposes the following members.

  Name Description
Public property CookieCollection Gets the cookies received by the HttpListener object in the WebSocket opening handshake. (Overrides WebSocketContext.CookieCollection.)
Public property Headers Gets the HTTP headers received by the HttpListener object in the WebSocket opening handshake. (Overrides WebSocketContext.Headers.)
Public property IsAuthenticated Gets a value that indicates if the WebSocket client is authenticated. (Overrides WebSocketContext.IsAuthenticated.)
Public property IsLocal Gets a value that indicates if the WebSocket client connected from the local machine. (Overrides WebSocketContext.IsLocal.)
Public property IsSecureConnection Gets a value that indicates if the WebSocket connection is secured using Secure Sockets Layer (SSL). (Overrides WebSocketContext.IsSecureConnection.)
Public property Origin Gets the value of the Origin HTTP header included in the WebSocket opening handshake. (Overrides WebSocketContext.Origin.)
Public property RequestUri Gets the URI requested by the WebSocket client. (Overrides WebSocketContext.RequestUri.)
Public property SecWebSocketKey Gets the value of the SecWebSocketKey HTTP header included in the WebSocket opening handshake. (Overrides WebSocketContext.SecWebSocketKey.)
Public property SecWebSocketProtocols Gets the list of the Secure WebSocket protocols included in the WebSocket opening handshake. (Overrides WebSocketContext.SecWebSocketProtocols.)
Public property SecWebSocketVersion Gets the list of sub-protocols requested by the WebSocket client. (Overrides WebSocketContext.SecWebSocketVersion.)
Public property User Gets an object used to obtain identity, authentication information, and security roles for the WebSocket client. (Overrides WebSocketContext.User.)
Public property WebSocket Gets the WebSocket instance used to send and receive data over the WebSocket connection. (Overrides WebSocketContext.WebSocket.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft