public UserAppSocket(WebSocket socket, ApiServices services, string homeHubId, string userEmail) : base(socket, services)
        {
            Debug.WriteLine("UserApp Conection opened");
            _userEmail = userEmail;

            _chatHub = ChatHub.Get(homeHubId);
            _chatHub.ClientMessage += _chatHub_ClientMessage;

            _checkInOutMonitor = CheckInOutMonitor.Create(homeHubId);
            _checkInOutMonitor.CheckInOut += _checkInOutMonitor_CheckInOut; ;

            SendInitialStates(homeHubId);
            SendInitialConnectionStatus();
            SendInitialUserInOut();
        }
 public static CheckInOutMonitor Create(string homeHubId)
 {
     var newMonitor = new CheckInOutMonitor(homeHubId);
     _instances.Add(newMonitor);
     return newMonitor;
 }