From 0254b00b9ede473456af0cf85a01730791d26c97 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 18 Aug 2017 14:24:44 +0900 Subject: [PATCH] [Modify] Edit it --- .../Server/WebSocketSessionManager.cs | 65 +++++++++++++++++-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index 1fbc0fef..476a77ed 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -865,18 +865,75 @@ namespace WebSocketSharp.Server } /// - /// Closes the session with the specified , , - /// and . + /// Closes the specified session with and + /// . /// /// /// A that represents the ID of the session to close. /// /// - /// A that represents the status code indicating the reason for the close. + /// + /// 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. + /// + /// A that represents the reason for the close. + /// + /// + /// The size must be 123 bytes or less in UTF-8. + /// /// + /// + /// is . + /// + /// + /// + /// is an empty string. + /// + /// + /// -or- + /// + /// + /// The session could not be found. + /// + /// + /// -or- + /// + /// + /// is 1010 (mandatory extension). + /// + /// + /// -or- + /// + /// + /// is 1005 (no status) and there is + /// . + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// + /// + /// + /// is less than 1000 or greater than 4999. + /// + /// + /// -or- + /// + /// + /// The size of is greater than 123 bytes. + /// + /// public void CloseSession (string id, ushort code, string reason) { IWebSocketSession session;