Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​WebSockets.​WebSocketContext
Assembly: System.Net.WebSockets
Inheritance: object → WebSocketContext
Used for accessing the information in the WebSocket handshake.
Properties
public
CookieCollection
CookieCollection
The cookies that were passed to the server during the opening handshake.
The HTTP headers that were sent to the server during the opening handshake.
public
bool
IsAuthenticated
Whether the WebSocket client is authenticated.
public
bool
IsLocal
Whether the WebSocket client connected from the local machine.
public
bool
IsSecureConnection
Whether the WebSocket connection is secured using Secure Sockets Layer (SSL).
public
string
Origin
The value of the Origin HTTP header included in the opening handshake.
public
Uri
RequestUri
The URI requested by the WebSocket client.
public
string
SecWebSocketKey
The value of the SecWebSocketKey HTTP header included in the opening handshake.
public
Collections.​Generic.​IEnumerable<​string>
SecWebSocketProtocols
The value of the SecWebSocketKey HTTP header included in the opening handshake.
public
string
SecWebSocketVersion
The list of subprotocols requested by the WebSocket client.
An object used to obtain identity, authentication information, and security roles for the WebSocket client.
public
WebSocket
WebSocket
The WebSocket instance used to interact (send/receive/close/etc) with the WebSocket connection.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object