Beginner question, how to quick join a lobby with two players?

Let’s say, me and a friend want to group up before joining a public lobby together, is the following a good strategy to implement it?

  • Me and my friend form a lobby (with Relay)
  • I (let’s say I’m the host) quick join a lobby that has at least 2 free slots
  • I connect to the lobby and send a clientRpc to my friend to also connect (passing the lobby id)
  • I delete my previous lobby

There doesn’t seem to be an “obvious” way to join a lobby with more than 1 player, am I missing something?

How I’d personally do it:

  1. Create a ‘Group’ using a Lobby that does not have a relay connection.
  2. When group leader selects a lobby they’d like to join, send an event that holds the either the allocation id or the lobby to other players in the Group Lobby.
  3. That event will trigger a Join Lobby on the clients of the Group Lobby which will use the information passed through the event to join the “Actual” Lobby.

Not sure if it makes sense, but that’s how I’d do it, conceptually.