Class WebSocketConnectionInfo
Provides information about a WebSocket connection.
public class WebSocketConnectionInfo : IWebSocketConnectionInfo
- Inheritance
-
WebSocketConnectionInfo
- Implements
- Inherited Members
Properties
ClientIPAddress
Gets the IP address of the client for the connection.
public string ClientIPAddress { get; }
Property Value
Cookies
Gets the collection of cookies for the connection.
public IDictionary<string, string> Cookies { get; }
Property Value
Host
Gets the host for the connection.
public string Host { get; }
Property Value
Origin
Gets the origin of the connection.
public string Origin { get; }
Property Value
Path
Gets the path for the connection.
public string Path { get; }
Property Value
SubProtocol
Gets the sub-protocol of the connection.
public string SubProtocol { get; }
Property Value
Methods
Create(WebSocketHttpRequest, string)
Creates a WebSocketConnectionInfo for a given request and IP address.
public static WebSocketConnectionInfo Create(WebSocketHttpRequest request, string clientIPAddress)
Parameters
requestWebSocketHttpRequestThe WebSocketHttpRequest to get the connection information for.
clientIPAddressstringThe IP address of the client connection.
Returns
- WebSocketConnectionInfo
The created WebSocketConnectionInfo.