When a user calls FindOrCreateLobbyAsync multiple times to join multiple lobbies, they encounter the message “you cannot join more than three lobbies simultaneously.” How can I make the user leave the previously joined lobbies?
I look forward to your reply
Hi there!
Once you have joined a lobby, you will have access to a LobbySession object. You can leave a session by calling lobbySession.LeaveLobby
or lobbySession.LeaveLobbyAsync
.
If your application closes without leaving an active lobby session, you can retrieve the list of lobbies you are part of when logging in to Coherence Cloud. Inactive (disconnected) players are usually removed from lobbies within a few minutes, but you may still want to clean up after logging in if necessary.
I hope this answers your question.