Hello,
Before joining the room, I cannot see the list of players/spectators in a room using getRoomByName and user manager apis. Is it a intentional ? Is security a reason here ?
After room join, I can see the list. But after leaving the room. The same user list can be accessed from getRoomByName and user manager APIs.
Should the list be present after leaving room ?
Usernames in User manager after leaving room.
Re: Usernames in User manager after leaving room.
Hi,
yes it is intentional, but not related to security.
The problem here is that to be able to have a list of users for every Room you would need to transfer a lot of potentially useless data for every connected client. Imagine each client downloading the full user list for a server with 1000 Rooms. It's a lot of data.
With this said there can be use cases where you may want to peek into a specific Room before joining it, in which case you can use server side code to implement the specific feature.
Does this help?
yes it is intentional, but not related to security.
The problem here is that to be able to have a list of users for every Room you would need to transfer a lot of potentially useless data for every connected client. Imagine each client downloading the full user list for a server with 1000 Rooms. It's a lot of data.
With this said there can be use cases where you may want to peek into a specific Room before joining it, in which case you can use server side code to implement the specific feature.
Does this help?
Who is online
Users browsing this forum: No registered users and 59 guests