|
|
|
@ -1065,15 +1065,12 @@ namespace WebSocketSharp.Server
|
|
|
|
/// -or-
|
|
|
|
/// -or-
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
/// The session could not be found.
|
|
|
|
|
|
|
|
/// </para>
|
|
|
|
|
|
|
|
/// <para>
|
|
|
|
|
|
|
|
/// -or-
|
|
|
|
|
|
|
|
/// </para>
|
|
|
|
|
|
|
|
/// <para>
|
|
|
|
|
|
|
|
/// <paramref name="message"/> could not be UTF-8-encoded.
|
|
|
|
/// <paramref name="message"/> could not be UTF-8-encoded.
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
|
|
|
|
/// <exception cref="InvalidOperationException">
|
|
|
|
|
|
|
|
/// The session could not be found.
|
|
|
|
|
|
|
|
/// </exception>
|
|
|
|
/// <exception cref="ArgumentOutOfRangeException">
|
|
|
|
/// <exception cref="ArgumentOutOfRangeException">
|
|
|
|
/// The size of <paramref name="message"/> is greater than 125 bytes.
|
|
|
|
/// The size of <paramref name="message"/> is greater than 125 bytes.
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
@ -1082,7 +1079,7 @@ namespace WebSocketSharp.Server
|
|
|
|
IWebSocketSession session;
|
|
|
|
IWebSocketSession session;
|
|
|
|
if (!TryGetSession (id, out session)) {
|
|
|
|
if (!TryGetSession (id, out session)) {
|
|
|
|
var msg = "The session could not be found.";
|
|
|
|
var msg = "The session could not be found.";
|
|
|
|
throw new ArgumentException (msg, "id");
|
|
|
|
throw new InvalidOperationException (msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return session.Context.WebSocket.Ping (message);
|
|
|
|
return session.Context.WebSocket.Ping (message);
|
|
|
|
|