How to match two player at same time

Please help me how I can match two player at same time

Any one help me

1 Like

Please help me

1 Like

You can use firebase realtime database. Add players that are waiting and each time a new player tries to match, match them with the player that is already waiting.

1 Like

@Saezy
If first player offline than remove first player waiting data
If first player offline than second player match with first player
It is work live only
any rule that remove if user offline than remove its one data remove from firebase

1 Like

When a match over or going to star mean make a clock to timer, in that time get a list of player who all are in online. When timer finished check whether both the players are online if not remove the who are offline and select first one from the list of online players

1 Like