public void OnSpectatorStateChanged(int userId, IPlayTableService playTableService)
        {
            var clientUser = getClientUser(userId);

            if (clientUser != null)
            {
                clientUser.SpectatorState(TableHubUtils.GetViewWerModel(userId, playTableService, _mapper));
            }
        }
Exemple #2
0
        public async Task SpectatorState()
        {
            int userId;

            if (TryParsUserId(out userId))
            {
                await Clients.User(userId.ToString()).SpectatorState(TableHubUtils.GetViewWerModel(userId, _tablesService, _mapper));
            }
        }