From 17bc2aaab891f829149abd4ce6b9aed87433eccd Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 28 Jul 2017 17:37:07 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/WebSocket.cs | 39 +++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 58cab3f0..7ad22b2c 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2747,24 +2747,45 @@ namespace WebSocketSharp } /// - /// Closes the WebSocket connection asynchronously with the specified - /// , and releases all associated resources. + /// Closes the connection asynchronously with the specified + /// . /// /// /// - /// This method does nothing if the current state of the connection is - /// Closing or Closed. + /// This method does not wait for the close to be complete. /// /// - /// This method does not wait for the close to be complete. + /// And this method does nothing if the current state of + /// the connection is Closing or Closed. /// /// /// - /// A that represents the status code indicating - /// the reason for the close. The status codes are defined in - /// - /// Section 7.4 of RFC 6455. + /// + /// A that represents the status code + /// indicating the reason for the close. + /// + /// + /// The status codes are defined in + /// + /// Section 7.4 of RFC 6455. + /// /// + /// + /// is less than 1000 or greater than 4999. + /// + /// + /// + /// is 1011 (server error). + /// It cannot be used by clients. + /// + /// + /// -or- + /// + /// + /// is 1010 (mandatory extension). + /// It cannot be used by servers. + /// + /// public void CloseAsync (ushort code) { if (!code.IsCloseStatusCode ()) {