[Modify] Edit it

This commit is contained in:
sta 2016-11-22 17:36:10 +09:00
parent 4cc4837fbe
commit a985eea230

View File

@ -2833,19 +2833,29 @@ namespace WebSocketSharp
}
/// <summary>
/// Sends text <paramref name="data"/> asynchronously using the WebSocket connection.
/// Sends the specified <paramref name="data"/> asynchronously using
/// the WebSocket connection.
/// </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="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.
/// An <c>Action&lt;bool&gt;</c> delegate that invokes the method called when
/// the send is complete. A <see cref="bool"/> passed to this delegate will be
/// <c>true</c> if the send has done with no error.
/// </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"/> cannot be UTF8 encoded.
/// </exception>
public void SendAsync (string data, Action<bool> completed)
{
if (_readyState != WebSocketState.Open) {