Request the room id(s) of the room(s) where a buddy is currently located into.
Sends:
SFSEvent..::.OnBuddyRoomDelegate
Version:
SmartFoxServer Basic / Pro
The following example shows how to join the same room of a buddy.
CopyC#
SFSEvent.onBuddyRoom += OnBuddyRoom; Buddy buddy = smartFox.GetBuddyByName("jack"); smartFox.GetBuddyRoom(buddy); public void OnBuddyRoom(ArrayList idList) { // Reach the buddy in his room smartFox.Join(idList[0]); }