We need a List playerBuffer there we can add players until the server is ready if the state changed to ready send command something like joinRoom for all players in the list. And a check if it ready instant add the player to the room and send command joinRoom.
But we need to take a look here #2