|
|
|
@ -650,7 +650,11 @@ namespace WebSocketSharp.Server
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
protected void SendAsync (string data, Action<bool> completed)
|
|
|
|
protected void SendAsync (string data, Action<bool> completed)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_websocket != null)
|
|
|
|
if (_websocket == null) {
|
|
|
|
|
|
|
|
var msg = "The current state of the connection is not Open.";
|
|
|
|
|
|
|
|
throw new InvalidOperationException (msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_websocket.SendAsync (data, completed);
|
|
|
|
_websocket.SendAsync (data, completed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|