[Modify] Edit it

This commit is contained in:
sta 2017-08-16 11:41:37 +09:00
parent e64daf6d81
commit 26525b12f3

View File

@ -1128,23 +1128,62 @@ namespace WebSocketSharp.Server
}
/// <summary>
/// Sends text <paramref name="data"/> asynchronously to the client on
/// the session with the specified <paramref name="id"/>.
/// Sends <paramref name="data"/> asynchronously to the client using
/// the specified session.
/// </summary>
/// <remarks>
/// This method doesn't wait for the send to be complete.
/// This method does not wait for the send to be complete.
/// </remarks>
/// <param name="data">
/// A <see cref="string"/> that represents the text data to send.
/// </param>
/// <param name="id">
/// A <see cref="string"/> that represents the ID of the session to find.
/// A <see cref="string"/> that represents the ID of the session.
/// </param>
/// <param name="completed">
/// An <c>Action&lt;bool&gt;</c> delegate that references the method(s) called when
/// the send is complete. A <see cref="bool"/> passed to this delegate is <c>true</c>
/// if the send is complete successfully.
/// <para>
/// An <c>Action&lt;bool&gt;</c> delegate or <see langword="null"/>
/// if not needed.
/// </para>
/// <para>
/// The delegate invokes the method called when the send is complete.
/// </para>
/// <para>
/// <c>true</c> is passed to the method if the send has done with
/// no error; otherwise, <c>false</c>.
/// </para>
/// </param>
/// <exception cref="ArgumentNullException">
/// <para>
/// <paramref name="id"/> is <see langword="null"/>.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// <paramref name="data"/> is <see langword="null"/>.
/// </para>
/// </exception>
/// <exception cref="ArgumentException">
/// <para>
/// <paramref name="id"/> is an empty string.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// The session could not be found.
/// </para>
/// <para>
/// -or-
/// </para>
/// <para>
/// <paramref name="data"/> could not be UTF-8-encoded.
/// </para>
/// </exception>
/// <exception cref="InvalidOperationException">
/// The current state of the WebSocket connection is not Open.
/// </exception>
public void SendToAsync (string data, string id, Action<bool> completed)
{
IWebSocketSession session;