From 8cfe277d9537c68571fab12bd7b3edb8c46648ef Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 27 Jul 2017 17:25:37 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/WebSocket.cs | 52 +++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index e88c5757..8e98df97 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2635,21 +2635,61 @@ 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. /// /// - /// One of the enum values that represents - /// the status code indicating the reason for the close. + /// + /// One of the enum values. + /// + /// + /// It represents the status code indicating the reason for the close. + /// /// /// - /// 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 + /// . + /// It cannot be used by clients. + /// + /// + /// -or- + /// + /// + /// is + /// . + /// It cannot be used by servers. + /// + /// + /// -or- + /// + /// + /// is + /// and + /// there is . + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// + /// + /// The size of is greater than 123 bytes. + /// public void Close (CloseStatusCode code, string reason) { if (_client && code == CloseStatusCode.ServerError) {