Ejemplo n.º 1
0
        private async Task NotifyLobbyAboutLeave(Guid playerId)
        {
            Guid lobbyId = playerRegistry.GetLobbyIdByPlayerId(playerId);

            if (playerRegistry.GetPlayerAmountForLobby(playerId) > 1)
            {
                await lobbyHubContext.Clients.Group(lobbyId.ToString()).PlayerLeavedLobby(playerId);
            }
        }