[Modify] Edit it
This commit is contained in:
parent
4cc4837fbe
commit
a985eea230
@ -2833,19 +2833,29 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends text <paramref name="data"/> asynchronously using the WebSocket connection.
|
/// Sends the specified <paramref name="data"/> asynchronously using
|
||||||
|
/// the WebSocket connection.
|
||||||
/// </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">
|
||||||
/// 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
|
/// An <c>Action<bool></c> delegate that invokes the method called when
|
||||||
/// the send is complete. A <see cref="bool"/> passed to this delegate is <c>true</c>
|
/// the send is complete. A <see cref="bool"/> passed to this delegate will be
|
||||||
/// if the send is complete successfully.
|
/// <c>true</c> if the send has done with no error.
|
||||||
/// </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"/> cannot be UTF8 encoded.
|
||||||
|
/// </exception>
|
||||||
public void SendAsync (string data, Action<bool> completed)
|
public void SendAsync (string data, Action<bool> completed)
|
||||||
{
|
{
|
||||||
if (_readyState != WebSocketState.Open) {
|
if (_readyState != WebSocketState.Open) {
|
||||||
|
Loading…
Reference in New Issue
Block a user