Send an SFSObject to the other users in the current room.
This method can be used to send complex/nested data structures to clients, like a game move or a game status change. Supported data types are: Strings, Booleans, Numbers, Arrays, Objects.
This method can be used to send complex/nested data structures to clients, like a game move or a game status change. Supported data types are: Strings, Booleans, Numbers, Arrays, Objects.


- 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 the other users.
CopyC#

SFSObject move = new SFSObject(); move.Put("x", 150); move.Put("y", 250); move.Put("speed", 8); smartFox.SendObject(move);
