|
|
|
@ -800,19 +800,36 @@ namespace WebSocketSharp.Server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Sends a Ping with the specified <paramref name="message"/> to every client in
|
|
|
|
/// Sends a ping with the specified <paramref name="message"/> to
|
|
|
|
/// the WebSocket services.
|
|
|
|
/// every client in the WebSocket services.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// <returns>
|
|
|
|
/// A <c>Dictionary<string, Dictionary<string, bool>></c> that contains
|
|
|
|
/// <para>
|
|
|
|
/// a collection of pairs of a service path and a collection of pairs of a session ID
|
|
|
|
/// A <c>Dictionary<string, Dictionary<string, bool>></c>.
|
|
|
|
/// and a value indicating whether the manager received a Pong from each client in a time,
|
|
|
|
/// </para>
|
|
|
|
/// or <see langword="null"/> if this method isn't available or <paramref name="message"/>
|
|
|
|
/// <para>
|
|
|
|
/// is invalid.
|
|
|
|
/// It contains a collection of pairs of a service path and
|
|
|
|
|
|
|
|
/// another collection of pairs of a session ID and a value
|
|
|
|
|
|
|
|
/// indicating whether a pong has been received within a time
|
|
|
|
|
|
|
|
/// from a client.
|
|
|
|
|
|
|
|
/// </para>
|
|
|
|
/// </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.
|
|
|
|
|
|
|
|
/// The size must be 125 bytes or less in UTF-8.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
|
|
|
|
/// <exception cref="InvalidOperationException">
|
|
|
|
|
|
|
|
/// The current state of the manager is not Start.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
|
|
|
|
/// <paramref name="message"/> is <see langword="null"/>.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
|
|
|
|
/// <paramref name="message"/> could not be UTF-8-encoded.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentOutOfRangeException">
|
|
|
|
|
|
|
|
/// The size of <paramref name="message"/> is greater than 125 bytes.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
public Dictionary<string, Dictionary<string, bool>> Broadping (string message)
|
|
|
|
public Dictionary<string, Dictionary<string, bool>> Broadping (string message)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_state != ServerState.Start) {
|
|
|
|
if (_state != ServerState.Start) {
|
|
|
|
|