[Modify] Edit it
This commit is contained in:
parent
8b6e2ecd61
commit
9908e5261b
@ -2688,15 +2688,25 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends a ping with the specified <paramref name="message"/> using the WebSocket connection.
|
/// Sends a ping with the specified <paramref name="message"/> using
|
||||||
|
/// the WebSocket connection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// <c>true</c> if the <see cref="WebSocket"/> receives a pong to this ping in a time;
|
/// <c>true</c> if the ping has been sent and then a pong has been
|
||||||
/// otherwise, <c>false</c>.
|
/// received within a time; otherwise, <c>false</c>.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <param name="message">
|
/// <param name="message">
|
||||||
/// A <see cref="string"/> that represents the message to send.
|
/// A <see cref="string"/> that represents the message to send.
|
||||||
/// </param>
|
/// </param>
|
||||||
|
/// <exception cref="ArgumentNullException">
|
||||||
|
/// <paramref name="message"/> is <see langword="null"/>.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentException">
|
||||||
|
/// <paramref name="message"/> could not be UTF8 encoded.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentOutOfRangeException">
|
||||||
|
/// The size of <paramref name="message"/> is greater than 125 bytes.
|
||||||
|
/// </exception>
|
||||||
public bool Ping (string message)
|
public bool Ping (string message)
|
||||||
{
|
{
|
||||||
if (message == null)
|
if (message == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user