Can I get a list of all created rooms which are currently running?
My app generates a 6 digit room's name each time when room is created. I need to exclude a chance to generate a name that's already occupied and regenerate it again.
3 Replies
Hi @MaxEsin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, I can answer your question about getting a list of all created rooms which are currently running in NormalVR's Normcore platform.
Unfortunately, according to the Architecture > Common Questions document, there is currently no built-in functionality in Normcore to get a list of all rooms and how many players are in them. The documentation states:
"This is something we're working on, but for the time being, it's something you'll need to manage yourself."
This means that Normcore does not currently provide a direct way to retrieve a list of all created rooms or check if a specific room name is already in use.
Given this limitation, you would need to implement your own solution to manage room names and avoid duplicates. Here are a few suggestions you could consider:
1. Maintain your own database or server-side list of created room names.
2. Use a significantly larger number space for room names (e.g., 8 or 10 digit codes) to reduce the likelihood of collisions.
3. Implement a system where you attempt to connect to a room with the generated name, and if it already exists, generate a new name and try again.
Keep in mind that these are workarounds and may not be ideal for all use cases. The Normcore team seems to be aware of this limitation and is working on a solution, so you might want to keep an eye on future updates to the platform.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@328247194794852352> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
unity lobby