diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 5b533138..731f4b0f 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -3816,38 +3816,83 @@ namespace WebSocketSharp } /// - /// Sets the HTTP proxy server URL to connect through, and if necessary, - /// a pair of and for - /// the proxy server authentication (Basic/Digest). + /// Sets the HTTP proxy server URL through which to connect and + /// the credentials for the HTTP authentication (Basic/Digest) by + /// the proxy server. /// /// - /// This method is not available in a server. + /// This method does nothing if the connection has already been + /// established or it is closing. /// /// /// - /// A that represents the HTTP proxy server URL to - /// connect through. The syntax must be http://<host>[:<port>]. + /// A that represents the proxy server URL through + /// which to connect. /// /// - /// If is or empty, - /// the url and credentials for the proxy will be initialized, - /// and the will not use the proxy to - /// connect through. + /// The syntax is http://<host>[:<port>]. /// /// /// /// - /// A that represents the user name used to authenticate. + /// A that represents the username associated with + /// the credentials. /// /// - /// If is or empty, - /// the credentials for the proxy will be initialized and not be sent. + /// or an empty string if the credentials are not + /// necessary. /// /// /// - /// A that represents the password for - /// used to authenticate. + /// + /// A that represents the password for the username + /// associated with the credentials. + /// + /// + /// or an empty string if not necessary. + /// /// + /// + /// This instance is not a client. + /// + /// + /// is . + /// + /// + /// + /// is an empty string. + /// + /// + /// -or- + /// + /// + /// is not an absolute URI string. + /// + /// + /// -or- + /// + /// + /// The scheme of is not http. + /// + /// + /// -or- + /// + /// + /// includes the path segments. + /// + /// + /// -or- + /// + /// + /// contains an invalid character. + /// + /// + /// -or- + /// + /// + /// contains an invalid character. + /// + /// public void SetProxy (string url, string username, string password) { string msg = null;