From a02b212d743d8b17a4b67ca01d5734e28b39c0a3 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 26 Jul 2017 15:03:58 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/WebSocket.cs | 62 +++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 8 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index d06ef020..bdf37934 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2533,23 +2533,69 @@ namespace WebSocketSharp } /// - /// Closes the WebSocket connection with the specified and - /// , and releases all associated resources. + /// Closes the connection with the specified 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. + /// /// /// - /// A that represents the reason for the close. - /// The size must be 123 bytes or less. + /// + /// A that represents the reason for the close. + /// + /// + /// The size must be 123 bytes or less in UTF-8. + /// /// + /// + /// + /// is less than 1000 or greater than 4999. + /// + /// + /// -or- + /// + /// + /// The size of is greater than 123 bytes. + /// + /// + /// + /// + /// is 1011 (server error). + /// It cannot be used by clients. + /// + /// + /// -or- + /// + /// + /// is 1010 (mandatory extension). + /// It cannot be used by servers. + /// + /// + /// -or- + /// + /// + /// is 1005 (no status) and + /// there is . + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// public void Close (ushort code, string reason) { if (!code.IsCloseStatusCode ()) {