From f3751d6e00e0ae26fb712173dc49f24c06e73359 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 8 Nov 2017 16:32:18 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/WebSocket.cs | 45 ++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 15 deletions(-) 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;