Modified sending (Removed SendAsync method)

This commit is contained in:
sta
2013-10-08 20:17:01 +09:00
parent ff390b4136
commit d6f21d31cd
3 changed files with 384 additions and 303 deletions

View File

@@ -649,14 +649,14 @@ namespace WebSocketSharp.Server
return;
}
WebSocketService service;
if (!TryGetServiceInstance (id, out service))
WebSocketService session;
if (!TryGetServiceInstance (id, out session))
{
_logger.Error ("The WebSocket session with the specified ID not found.\nID: " + id);
return;
}
service.Send (data);
session.Context.WebSocket.Send (data, null);
}
/// <summary>
@@ -678,14 +678,14 @@ namespace WebSocketSharp.Server
return;
}
WebSocketService service;
if (!TryGetServiceInstance (id, out service))
WebSocketService session;
if (!TryGetServiceInstance (id, out session))
{
_logger.Error ("The WebSocket session with the specified ID not found.\nID: " + id);
return;
}
service.Send (data);
session.Context.WebSocket.Send (data, null);
}
/// <summary>