Exemple #1
0
 private static void OnClosed(WebSocketSession session, CloseReason value)
 {
     Log.Info("Device Closed  [ ID:" + session.SessionID + "  Reason:" + value.ToString() + " ]");
     Console.Title = ("Online " + SessionPool.DevicesCount() + " User");
     Login.LoginOut(session.UserId);
     SessionPool.Remove(session);
 }