Hello there,
Ashley
I don't know what is the correct way to solve the following problem:
- A multiplayer game, where 2 players battle against each other taking turns (like in FF) = room peer limit 2
- 3rd (and so forth) player joins the room, but it's already full
- a new room is created and the player waits for a next opponent to join
- next opponent joins the newly created room
- and so on
Here how I solved the problem:
- Room_Name is a global variable (not constant) which holds a number 1 on default
- The first and the second player joins the room 1
- Third player tries to join the room 1, but it's full (onErrorMessage "room is full")
- Third player iterates the variable Room_Name+1 and joins the newly created room
- Fourth player does the same
So far it works, but I don't know if it's healthy for a signalling server. May be there's a better way to do it? And what will happen, if like 100 players use this auto join logic?