Ejemplo n.º 1
0
 public void CloseAsync(WsCloseCode code, string reason)
 {
     if (base.Context.WebSocket == null ||
         base.ConnectionState == WebSocketSharp.WebSocketState.Closing ||
         base.ConnectionState == WebSocketSharp.WebSocketState.Closed)
     {
         return;
     }
     base.CloseAsync(code.ToCloseStatusCode(), reason);
 }
Ejemplo n.º 2
0
 public void CloseAsync(WsCloseCode code, string reason)
 {
     try {
         if (base.Context.WebSocket == null ||
             base.ConnectionState == WebSocketSharp.WebSocketState.Closing ||
             base.ConnectionState == WebSocketSharp.WebSocketState.Closed)
         {
             return;
         }
         base.CloseAsync(code.ToCloseStatusCode(), reason);
     }
     catch (Exception e) {
         Logger.ErrorDebugLine(e);
     }
 }
Ejemplo n.º 3
0
 public void CloseAsync(WsCloseCode code, string reason)
 {
     base.CloseAsync(code.ToCloseStatusCode(), reason);
 }