Table of Contents

Class WebSocketConnectionInfo

Namespace
OpenQA.Selenium.Safari.Internal
Assembly
WebDriver.dll

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

string

Cookies

Gets the collection of cookies for the connection.

public IDictionary<string, string> Cookies { get; }

Property Value

IDictionary<string, string>

Host

Gets the host for the connection.

public string Host { get; }

Property Value

string

Origin

Gets the origin of the connection.

public string Origin { get; }

Property Value

string

Path

Gets the path for the connection.

public string Path { get; }

Property Value

string

SubProtocol

Gets the sub-protocol of the connection.

public string SubProtocol { get; }

Property Value

string

Methods

Create(WebSocketHttpRequest, string)

Creates a WebSocketConnectionInfo for a given request and IP address.

public static WebSocketConnectionInfo Create(WebSocketHttpRequest request, string clientIPAddress)

Parameters

request WebSocketHttpRequest

The WebSocketHttpRequest to get the connection information for.

clientIPAddress string

The IP address of the client connection.

Returns

WebSocketConnectionInfo

The created WebSocketConnectionInfo.