public virtual Boolean CloseAll(Int32 status)
 {
     lock (webSocketNetwork.WsSendLock)
     {
         webSocketNetwork.PrepareSendFrame(WebSocketNetwork.WsFin | WebSocketNetwork.WsClose, false, null, 0, 0, status);
         return(Multicast(webSocketNetwork.WsSendBuffer.ToArray()) && base.DisconnectAll());
     }
 }
 public Int64 SendText(Byte[] buffer, Int64 offset, Int64 size)
 {
     lock (webSocketNetwork.WsSendLock)
     {
         webSocketNetwork.PrepareSendFrame(WebSocketNetwork.WsFin | WebSocketNetwork.WsText, false, buffer, offset, size);
         return(base.Send(webSocketNetwork.WsSendBuffer.ToArray()));
     }
 }