From 540667fd0cdf542ae5d8217f0e002403dedd4a63 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 24 May 2018 18:53:57 +0900 Subject: [PATCH] [Modify] Edit it --- websocket-sharp/Server/WebSocketBehavior.cs | 45 ++++++++++++++++----- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs index f68914dc..d531dae3 100644 --- a/websocket-sharp/Server/WebSocketBehavior.cs +++ b/websocket-sharp/Server/WebSocketBehavior.cs @@ -575,25 +575,50 @@ namespace WebSocketSharp.Server } /// - /// Sends the specified as binary data asynchronously to - /// the client on a session. + /// Sends the specified file to a client asynchronously using the WebSocket + /// connection. /// /// + /// This method does not wait for the send to be complete. + /// + /// /// - /// This method is available after the WebSocket connection has been established. + /// A that specifies the file to send. /// /// - /// This method doesn't wait for the send to be complete. + /// The file is sent as the binary data. /// - /// - /// - /// A that represents the file 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 . + /// + /// + /// + /// The file does not exist. + /// + /// + /// -or- + /// + /// + /// The file could not be opened. + /// + /// protected void SendAsync (FileInfo fileInfo, Action completed) { if (_websocket == null) {