I want chat room to be limited to host and 2 players only - are there any ways to do that?
yes have the host kick them if they try to join, and also when you request the game list you can add events to not display those that are "full" so people dont join them
Develop games in your browser. Powerful, performant & highly capable.
Set max peers when creating the room:
Snippet from the manual:
If the room is locked when full, then late-joiners are not allowed; if left unlocked and a peer leaves after the game starts, a newly joining peer may be added back to the game to top it up to the Max peers again. Upon joining, On joined room triggers.
thank you both!