Usernames in User manager after leaving room.

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

pratts
Posts: 34
Joined: 23 Aug 2016, 17:46

Usernames in User manager after leaving room.

Postby pratts » 07 Apr 2017, 10:35

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 ?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Usernames in User manager after leaving room.

Postby Lapo » 07 Apr 2017, 14:25

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?
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 59 guests