public async Task OnConnect(string userEmail) { var user = usersManager.GetUserByEmail(userEmail); usersManager.AddUserConnections(new ConnectionModel { ConnectionID = Context.ConnectionId, IsConnected = true, UserAgent = Context.GetHttpContext().Request.Headers["User-Agent"], UserID = user.ID }); await base.OnConnectedAsync(); }