[Modify] Edit it
This commit is contained in:
parent
4cc4837fbe
commit
a985eea230
@ -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<bool></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<bool></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) {
|
||||
|
Loading…
Reference in New Issue
Block a user