[Modify] Edit it
This commit is contained in:
parent
84e2a1ed42
commit
581a03e08d
@ -511,19 +511,33 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends text <paramref name="data"/> asynchronously to every client in
|
/// Sends the specified <paramref name="data"/> asynchronously to
|
||||||
/// the WebSocket service.
|
/// every client in the WebSocket service.
|
||||||
/// </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 <see cref="Action"/> delegate that references the method(s) called when
|
/// <para>
|
||||||
/// the send is complete.
|
/// An <see cref="Action"/> delegate or <see langword="null"/>
|
||||||
|
/// if not needed.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// That delegate invokes the method called when the send is complete.
|
||||||
|
/// </para>
|
||||||
/// </param>
|
/// </param>
|
||||||
|
/// <exception cref="InvalidOperationException">
|
||||||
|
/// The current state of the manager is not Start.
|
||||||
|
/// </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>
|
||||||
public void BroadcastAsync (string data, Action completed)
|
public void BroadcastAsync (string data, Action completed)
|
||||||
{
|
{
|
||||||
if (_state != ServerState.Start) {
|
if (_state != ServerState.Start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user