[Modify] Polish it
This commit is contained in:
parent
636e61e8b9
commit
838845f342
@ -1220,8 +1220,10 @@ namespace WebSocketSharp.Server
|
||||
public void SendTo (string data, string id)
|
||||
{
|
||||
IWebSocketSession session;
|
||||
|
||||
if (!TryGetSession (id, out session)) {
|
||||
var msg = "The session could not be found.";
|
||||
|
||||
throw new InvalidOperationException (msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user