[Modify] Edit it

This commit is contained in:
sta 2017-08-13 15:08:15 +09:00
parent 5e0ea01ec0
commit feca747684

View File

@ -967,15 +967,39 @@ namespace WebSocketSharp.Server
} }
/// <summary> /// <summary>
/// Sends binary <paramref name="data"/> to the client on the session with /// Sends <paramref name="data"/> to the client using the specified session.
/// the specified <paramref name="id"/>.
/// </summary> /// </summary>
/// <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>
/// <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 SendTo (byte[] data, string id) public void SendTo (byte[] data, string id)
{ {
IWebSocketSession session; IWebSocketSession session;