From 25ad8c6ec0c84fefdc419af0640a5cbe5565a837 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 6 Jun 2017 17:29:12 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/Server/HttpServer.cs | 39 ++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index 31bde274..d419ab1c 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -1164,18 +1164,47 @@ namespace WebSocketSharp.Server } /// - /// Removes the WebSocket service with the specified . + /// Removes a WebSocket service with the specified . /// /// - /// This method converts to URL-decoded string, - /// and removes '/' from tail end of . + /// + /// is converted to a URL-decoded string and + /// '/' is trimmed from the end of the converted string if any. + /// + /// + /// The service is stopped with close status 1001 (going away) + /// if it has already started. + /// /// /// - /// true if the service is successfully found and removed; otherwise, false. + /// true if the service is successfully found and removed; + /// otherwise, false. /// /// - /// A that represents the absolute path to the service to find. + /// A that represents an absolute path to + /// the service to remove. /// + /// + /// is . + /// + /// + /// + /// is an empty string. + /// + /// + /// -or- + /// + /// + /// is not an absolute path. + /// + /// + /// -or- + /// + /// + /// includes either or both + /// query and fragment components. + /// + /// public bool RemoveWebSocketService (string path) { return _services.RemoveService (path);