コード例 #1
0
        protected void OnConnectionOpened(WebSocketConnectionEventArgs e)
        {
            var handler = ConnectionOpened;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
        protected void OnPingReceived(WebSocketConnectionEventArgs e)
        {
            var handler = PingReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #3
0
 private void OnConnectionClosed(object sender, WebSocketConnectionEventArgs args)
 {
     var app = _applications.GetApplicationByHost(args.Connection.Host);
     if (app != null)
         app.NotifyConnectionClosed(args.Connection);
 }
コード例 #4
0
 protected void OnConnectionClosed(WebSocketConnectionEventArgs e)
 {
     var handler = ConnectionClosed;
     if (handler != null)
         handler(this, e);
 }
コード例 #5
0
 protected void OnPingReceived(WebSocketConnectionEventArgs e)
 {
     var handler = PingReceived;
     if (handler != null)
         handler(this, e);
 }