protected void OnConnectionOpened(WebSocketConnectionEventArgs e)
        {
            var handler = ConnectionOpened;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected void OnPingReceived(WebSocketConnectionEventArgs e)
        {
            var handler = PingReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void OnConnectionClosed(object sender, WebSocketConnectionEventArgs args)
 {
     var app = _applications.GetApplicationByHost(args.Connection.Host);
     if (app != null)
         app.NotifyConnectionClosed(args.Connection);
 }
 protected void OnConnectionClosed(WebSocketConnectionEventArgs e)
 {
     var handler = ConnectionClosed;
     if (handler != null)
         handler(this, e);
 }
 protected void OnPingReceived(WebSocketConnectionEventArgs e)
 {
     var handler = PingReceived;
     if (handler != null)
         handler(this, e);
 }