|
|
|
@ -1572,18 +1572,6 @@ namespace WebSocketSharp
|
|
|
|
_context = null;
|
|
|
|
_context = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private bool send (byte[] frameAsBytes)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
lock (_forState) {
|
|
|
|
|
|
|
|
if (_readyState != WebSocketState.Open) {
|
|
|
|
|
|
|
|
_logger.Error ("The state of the connection has been changed.");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return sendBytes (frameAsBytes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool send (Opcode opcode, Stream stream)
|
|
|
|
private bool send (Opcode opcode, Stream stream)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lock (_forSend) {
|
|
|
|
lock (_forSend) {
|
|
|
|
|