public void OnPlayerCardsChanged(int userId, Card[] userCards, IPlayTableService playTableService) { _hub.Clients.User(userId.ToString()).PlayerCards(userCards); //for viewers var viewers = playTableService.GetTableViewerOfCardPlayers(userId); if (viewers.Length > 0) { foreach (var viewer in viewers) { var clientUser = getClientUser(viewer.userId); if (clientUser != null) { clientUser.PlayerCardsForSpectator(userCards); } } } }