[Modify] Remove it
This commit is contained in:
parent
e4b960dcf8
commit
9e7c43cb8b
@ -554,35 +554,6 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Sends <paramref name="data"/> to every client in the WebSocket services.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="data">
|
|
||||||
/// An array of <see cref="byte"/> that represents the binary data to send.
|
|
||||||
/// </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>
|
|
||||||
[Obsolete ("This method will be removed.")]
|
|
||||||
public void Broadcast (byte[] data)
|
|
||||||
{
|
|
||||||
if (_state != ServerState.Start) {
|
|
||||||
var msg = "The current state of the manager is not Start.";
|
|
||||||
throw new InvalidOperationException (msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data == null)
|
|
||||||
throw new ArgumentNullException ("data");
|
|
||||||
|
|
||||||
if (data.LongLength <= WebSocket.FragmentLength)
|
|
||||||
broadcast (Opcode.Binary, data, null);
|
|
||||||
else
|
|
||||||
broadcast (Opcode.Binary, new MemoryStream (data), null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends <paramref name="data"/> to every client in the WebSocket services.
|
/// Sends <paramref name="data"/> to every client in the WebSocket services.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user