From e14739719acc5f86f6e715acbcef7b840f533ac6 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 12 Aug 2017 14:50:27 +0900 Subject: [PATCH] [Modify] Edit it --- .../Server/WebSocketSessionManager.cs | 38 ++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index b541a029..b6d6a457 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -916,19 +916,47 @@ namespace WebSocketSharp.Server } /// - /// Sends a Ping with the specified to the client on - /// the session with the specified . + /// Sends a ping with to the client using + /// the specified session. /// /// - /// true if the manager receives a Pong from the client in a time; - /// otherwise, false. + /// true if the send has done with no error and a pong has been + /// received from the client within a time; otherwise, false. /// /// - /// A that represents the message to send. + /// + /// A that represents the message to send. + /// + /// + /// The size must be 125 bytes or less in UTF-8. + /// /// /// /// A that represents the ID of the session to find. /// + /// + /// is . + /// + /// + /// + /// is an empty string. + /// + /// + /// -or- + /// + /// + /// The session could not be found. + /// + /// + /// -or- + /// + /// + /// could not be UTF-8-encoded. + /// + /// + /// + /// The size of is greater than 125 bytes. + /// public bool PingTo (string message, string id) { IWebSocketSession session;