diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 4cd8f5ad..ded35ada 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -3749,30 +3749,45 @@ namespace WebSocketSharp } /// - /// Sets a pair of and for - /// the HTTP authentication (Basic/Digest). + /// Sets the credentials for the HTTP authentication (Basic/Digest). /// /// - /// This method is not available in a server. + /// + /// The credentials are initialized if is + /// or an empty string. + /// + /// + /// This method does nothing if the connection has already been + /// established or it is closing. + /// /// /// - /// - /// A that represents the user name used to authenticate. - /// - /// - /// If is or empty, - /// the credentials will be initialized and not be sent. - /// + /// A that represents the username associated with + /// the credentials. /// /// - /// A that represents the password for - /// used to authenticate. + /// A that represents the password for the username + /// associated with the credentials. /// /// - /// true if the sends the credentials for - /// the Basic authentication with the first handshake request to the server; - /// otherwise, false. + /// true if this instance sends the credentials for the Basic + /// authentication with the first handshake request before receiving + /// an authentication challenge; otherwise, false. /// + /// + /// This instance is not a client. + /// + /// + /// + /// contains an invalid character. + /// + /// + /// -or- + /// + /// + /// contains an invalid character. + /// + /// public void SetCredentials (string username, string password, bool preAuth) { string msg = null;