From 32ba638d4b7ab0eb84f74fc0207f087c8940bb26 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 26 May 2018 17:23:19 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/Server/WebSocketBehavior.cs | 33 ++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs index 7016d9e0..f5d733e7 100644 --- a/websocket-sharp/Server/WebSocketBehavior.cs +++ b/websocket-sharp/Server/WebSocketBehavior.cs @@ -630,24 +630,37 @@ namespace WebSocketSharp.Server } /// - /// Sends text asynchronously to the client on a session. + /// Sends the specified data to a client asynchronously using the WebSocket + /// connection. /// /// - /// - /// This method is available after the WebSocket connection has been established. - /// - /// - /// This method doesn't wait for the send to be complete. - /// + /// This method does not wait for the send to be complete. /// /// /// A that represents the text data to send. /// /// - /// An Action<bool> delegate that references the method(s) called when - /// the send is complete. A passed to this delegate is true - /// if the send is complete successfully. + /// + /// An Action<bool> delegate or + /// if not needed. + /// + /// + /// The delegate invokes the method called when the send is complete. + /// + /// + /// true is passed to the method if the send has done with + /// no error; otherwise, false. + /// /// + /// + /// The current state of the connection is not Open. + /// + /// + /// is . + /// + /// + /// could not be UTF-8-encoded. + /// protected void SendAsync (string data, Action completed) { if (_websocket == null) {