How to allow only one player joining the room at a time?

Options
Greeting,

I found in some discussions posted 5 years ago, the list of players in the lobby isn't accessible. Then I'm wondering how to solve this issue: I want to implement a password system, and users using the same nicknames and passwords can't join at the same time. I'm implementing this using the room customized property and it works however except for this case: if say two users accidentally enter the room at the same time, using the same nicknames and passwords, they can enter at the same time since the room customized property hasn't been updated. Is there a way to allow just one player to join the room and block other users while that player is joining?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2021
    Options
    Hi @Danhua,

    By default now, two clients with the same UserId can't join the same room at the same time.