From 440c3ce20d7939e07fd07c38673c70beca5369a0 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 28 May 2018 19:23:34 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/Server/WebSocketBehavior.cs | 57 ++++++++++++++++----- 1 file changed, 44 insertions(+), 13 deletions(-) diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs index 9eda57b8..8685b309 100644 --- a/websocket-sharp/Server/WebSocketBehavior.cs +++ b/websocket-sharp/Server/WebSocketBehavior.cs @@ -672,28 +672,59 @@ namespace WebSocketSharp.Server } /// - /// Sends binary data from the specified asynchronously to - /// the client on a session. + /// Sends the data from the specified stream 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 from which contains the binary data to send. + /// + /// A instance from which to read the data to send. + /// + /// + /// The data is sent as the binary data. + /// /// /// - /// An that represents the number of bytes to send. + /// An that specifies the number of bytes 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 . + /// + /// + /// + /// cannot be read. + /// + /// + /// -or- + /// + /// + /// is less than 1. + /// + /// + /// -or- + /// + /// + /// No data could be read from . + /// + /// protected void SendAsync (Stream stream, int length, Action completed) { if (_websocket == null) {