[Modify] Edit it
This commit is contained in:
parent
7afbacd6e0
commit
ea19c5d94a
@ -1066,23 +1066,56 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends binary <paramref name="data"/> asynchronously to the client on
|
/// Sends <paramref name="data"/> asynchronously to the client using
|
||||||
/// the session with the specified <paramref name="id"/>.
|
/// the specified session.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method doesn't wait for the send to be complete.
|
/// This method does not wait for the send to be complete.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="data">
|
/// <param name="data">
|
||||||
/// An array of <see cref="byte"/> that represents the binary data to send.
|
/// An array of <see cref="byte"/> that represents the binary data to send.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="id">
|
/// <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>
|
||||||
/// <param name="completed">
|
/// <param name="completed">
|
||||||
/// An <c>Action<bool></c> delegate that references the method(s) called when
|
/// <para>
|
||||||
/// the send is complete. A <see cref="bool"/> passed to this delegate is <c>true</c>
|
/// An <c>Action<bool></c> delegate or <see langword="null"/>
|
||||||
/// if the send is complete successfully.
|
/// if not needed.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// That 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>
|
/// </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>
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="InvalidOperationException">
|
||||||
|
/// The current state of the WebSocket connection is not Open.
|
||||||
|
/// </exception>
|
||||||
public void SendToAsync (byte[] data, string id, Action<bool> completed)
|
public void SendToAsync (byte[] data, string id, Action<bool> completed)
|
||||||
{
|
{
|
||||||
IWebSocketSession session;
|
IWebSocketSession session;
|
||||||
|
Loading…
Reference in New Issue
Block a user