WebSocketSetProxy Method |
Namespace: Sfs2X.WebSocketSharp
public void SetProxy( string url, string username, string password )
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.
A String that represents the username associated with the credentials.
or an empty string if the credentials are not necessary.
A String that represents the password for the username associated with the credentials.
or an empty string if not necessary.
Exception | Condition |
---|---|
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. |