[Modify] Edit it
This commit is contained in:
parent
ec3d720d36
commit
32ba638d4b
@ -630,24 +630,37 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends text <paramref name="data"/> asynchronously to the client on a session.
|
/// Sends the specified data to a client asynchronously using the WebSocket
|
||||||
|
/// connection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para>
|
/// This method does not wait for the send to be complete.
|
||||||
/// This method is available after the WebSocket connection has been established.
|
|
||||||
/// </para>
|
|
||||||
/// <para>
|
|
||||||
/// This method doesn't wait for the send to be complete.
|
|
||||||
/// </para>
|
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="data">
|
/// <param name="data">
|
||||||
/// A <see cref="string"/> that represents the text data to send.
|
/// A <see cref="string"/> that represents the text data to send.
|
||||||
/// </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>
|
||||||
|
/// 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>
|
/// </param>
|
||||||
|
/// <exception cref="InvalidOperationException">
|
||||||
|
/// The current state of the connection is not Open.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentNullException">
|
||||||
|
/// <paramref name="data"/> is <see langword="null"/>.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentException">
|
||||||
|
/// <paramref name="data"/> could not be UTF-8-encoded.
|
||||||
|
/// </exception>
|
||||||
protected void SendAsync (string data, Action<bool> completed)
|
protected void SendAsync (string data, Action<bool> completed)
|
||||||
{
|
{
|
||||||
if (_websocket == null) {
|
if (_websocket == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user