Exemplo n.º 1
0
        public override async Task OnDisconnectedAsync(Exception exception)
        {
            var lobbyId = GetLobbyId();
            await Groups.RemoveFromGroupAsync(
                Context.ConnectionId,
                lobbyId
                );

            await _lobbyService.RemovePlayerAsync(lobbyId, GetUserId());

            await base.OnDisconnectedAsync(exception);
        }