Room Subscription Events

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

Moderators: Lapo, Bax

wallis2xk
Posts: 43
Joined: 01 Sep 2006, 10:00
Location: United Kingdom

Room Subscription Events

Postby wallis2xk » 21 Mar 2011, 12:59

If I subscribe to a group, what events should I be able to get from a room in that group? I'm trying to list all of the players in the rooms I'm subscribed to, but when a new user joins one of these rooms, only the USER_COUNT_CHANGE appears to be fired and the userList of that room remains empty.

Is there a way to access users of a room I haven't joined but am subscribed to?

Thanks
User avatar
Lapo
Site Admin
Posts: 21639
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Mar 2011, 07:50

If I subscribe to a group, what events should I be able to get from a room in that group?

If you subscribe to a Group you get Zone events for the Rooms on that group, you don't get Room events. Room events are dispatched when you join the Room.
From outside a Room you can be notified about Rooms being added or removed from the Group, the user/spectator counts and updates about Room Variables marked as global.

Is there a way to access users of a room I haven't joined but am subscribed to?

Nope. It would generate too much traffic, we can't support this out of the box, but you can extend it via server side code.

Finally the docs will provide more info:
http://docs2x.smartfoxserver.com/Develo ... chitecture
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 35 guests