Dispatched in response to a GetBuddyRoom(Buddy) request.
Version:
SmartFoxServer Basic / Pro
The following example shows how to join the same room in which the buddy currently is.
CopyC#
SFSEvent.onBuddyRoom += OnBuddyRoom; Buddy buddy = smartFox.GetBuddyByName("jack"); smartFox.GetBuddyRoom(buddy); public void OnBuddyRoom(List<int> idList) { // Reach the buddy in his room smartFox.Join(idList[0]); }