From 3acda8050bbb3f53cf4753902a078889bfe6e818 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 18 Aug 2017 14:45:21 +0900 Subject: [PATCH] [Modify] Edit it --- .../Server/WebSocketSessionManager.cs | 57 +++++++++++++++++-- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index f87d3a0d..6dca4079 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -946,19 +946,66 @@ 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. /// /// - /// One of the enum values, 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. + /// + /// 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 + /// . + /// + /// + /// -or- + /// + /// + /// is + /// and there is + /// . + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// + /// + /// The size of is greater than 123 bytes. + /// public void CloseSession (string id, CloseStatusCode code, string reason) { IWebSocketSession session;