NoobHub 1-on-1 matching help

I know that this isn’t supposed to be here, it’s not something that Corona has made. (Honestly, I hate it when people make a new topic for help on a specific resource [on a different forum, that is])
But I’m going to go out on a limb and ask for some help.

I’m using NoobHub for my networking and my game is going to contain multiplayer and will support 1 on 1 “racing” (later i’ll see if i can have multiple people “racing” in the same level - live), how can I find matches to play with? That is, you cannot play until you have a partner.

For example:
player1 pressed Multiplayer and then the game “Finds matches” (connects to the server)
player1 has to wait until another player wants to play multiplayer.
player1337 pressed Multiplayer and then the game “Finds matches”
player1337 and player1 has been matched and have been given their own channel.
player1337 and player1 tell their partner some information (username, clothing etc)
The multiplayer match between player1337 and player1 starts.
player1337 and player1 constantly sync information, such as positions. [import]uid: 76405 topic_id: 35106 reply_id: 335106[/import]

Just roll out your own protocol…

Have a common channel say “race_lobby” and subscribe all devices to that channel when they enter the game… .

Heres a very basic algo…

When user clicks multiplayer button,   
 send a message : i\_want\_to\_play  
 wait for any message,  
 if a message : response\_to\_i\_want\_to\_play is received  
 connected = true  
 connect with the client which sent the response  
 if a message : i\_want\_to\_play is received and (connected is not true)  
 respond with a message response\_to\_i\_want\_to\_play  

[import]uid: 64174 topic_id: 35106 reply_id: 139584[/import]

Interesting! Do I create the code for the above algo server or client side? [import]uid: 76405 topic_id: 35106 reply_id: 139611[/import]

Just roll out your own protocol…

Have a common channel say “race_lobby” and subscribe all devices to that channel when they enter the game… .

Heres a very basic algo…

When user clicks multiplayer button,   
 send a message : i\_want\_to\_play  
 wait for any message,  
 if a message : response\_to\_i\_want\_to\_play is received  
 connected = true  
 connect with the client which sent the response  
 if a message : i\_want\_to\_play is received and (connected is not true)  
 respond with a message response\_to\_i\_want\_to\_play  

[import]uid: 64174 topic_id: 35106 reply_id: 139584[/import]

Interesting! Do I create the code for the above algo server or client side? [import]uid: 76405 topic_id: 35106 reply_id: 139611[/import]