Prevent players to join to room that disconnected ones left.

Options
Hi,
If there are two players in a room and one of them disconnected, how can I prevent new game searching players to connect that room. Btw players are joining room by JoinRandomRoom

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @liero

    When both players join the Room then you can make it invisible (RoomOptions.isVisible = false so it won't be available for random matchmaking or listed in its respective lobby) and even close it (RoomOptions.isOpen = false, so it no longer can be joined).
  • liero
    Options
    Closing room helped thanks for your answer.