Click or drag to resize

WebSocketSetProxy Method

Sets the URL of the HTTP proxy server through which to connect and the credentials for the HTTP proxy authentication (Basic/Digest).

Namespace:  Sfs2X.WebSocketSharp
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void SetProxy(
	string url,
	string username,
	string password
)

Parameters

url
Type: SystemString

A String that represents the URL of the proxy server through which to connect.

The syntax is http://<host>[:<port>].

or an empty string if initializes the URL and the credentials.

username
Type: SystemString

A String that represents the username associated with the credentials.

or an empty string if the credentials are not necessary.

password
Type: SystemString

A String that represents the password for the username associated with the credentials.

or an empty string if not necessary.

Exceptions
ExceptionCondition
InvalidOperationException This instance is not a client.
ArgumentException

url is not an absolute URI string.

-or-

The scheme of url is not http.

-or-

url includes the path segments.

-or-

username contains an invalid character.

-or-

password contains an invalid character.

Remarks
This method does nothing if the connection has already been established or it is closing.
See Also