Send an SFSObject to a group of users in the room.
See SendObject(SFSObject, Int32) for more info.


- obj (SFSObject)
- the SFSObject to be sent.
- roomId (Int32)
- the id of the target room, in case of multi-room join (optional, default value: activeRoomId).

Sends:
SFSEvent..::.OnObjectReceivedDelegate
Version:
SmartFoxServer Basic / Pro

The following example shows how to send a simple object with primitive data to two users.
CopyC#

SFSObject move = new SFSObject(); move.Put("x", 150); move.Put("y", 250); move.Put("speed", 8); smartFox.SendObject(move); List<int> userList = new List<int>(); userList.Add(11); userList.Add(12); smartFox.SendObjectToGroup(move, userList);