Page 1 of 1

Room Subscription Events

Posted: 21 Mar 2011, 12:59
by wallis2xk
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

Posted: 22 Mar 2011, 07:50
by Lapo
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