diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs
index 4ee71851..f528d307 100644
--- a/websocket-sharp/Server/WebSocketSessionManager.cs
+++ b/websocket-sharp/Server/WebSocketSessionManager.cs
@@ -1106,25 +1106,25 @@ namespace WebSocketSharp.Server
///
///
///
+ /// is an empty string.
+ ///
+ ///
///
- /// is an empty string.
+ /// The session could not be found.
///
///
/// -or-
///
///
- /// The session could not be found.
+ /// The current state of the WebSocket connection is not Open.
///
///
- ///
- /// The current state of the WebSocket connection is not Open.
- ///
public void SendTo (byte[] data, string id)
{
IWebSocketSession session;
if (!TryGetSession (id, out session)) {
var msg = "The session could not be found.";
- throw new ArgumentException (msg, "id");
+ throw new InvalidOperationException (msg);
}
session.Context.WebSocket.Send (data);