Relay and Lobby integration

Hello,

I am trying to grasp how Relay and Lobby works together.

Let’s imagine simple usecase when player A creates a Lobby, then user B join lobby as well.
User A will connect to Relay service and will provide AllocationID and join code.

UpdatePlayerOptions updateOptions = new UpdatePlayerOptions
            {
                // Data = data,
                AllocationId = allocationId,
                ConnectionInfo = joinCode
            };
await Lobbies.Instance.UpdatePlayerAsync(lobbyId, playerId, updateOptions);

Then player B joins relay as well.

According to this documentation I was suspecting that after shutting down Relay connection on player A, lobby should get updated automatically and probably new host should be chosen, but it is not clear tbh.

What is the purpose of providing AllocationID to Lobby or I am missing something? Is the Relay service talking to Lobby service or this needs to be implemented on Host?

Thanks

I know this is an old post but the documentation really does need to add more detail as to exactly what setting the AllocationId on the Player actually achieves. Does anyone have any clarification on this? I have Lobby and Relay working just fine, and I am setting the Player AllocationId successfully, but I am not certain what it accomplishes.