Dispatched when an SFSObject is received.


Version:
SmartFoxServer Basic / Pro

The following example shows how to handle an Actionscript object received from a user.
CopyC#

SFSEvent.onObjectReceived += OnObjectReceived; public void OnObjectReceived(SFSObject obj, User sender) { // Assuming another client sent his X and Y positions in two properties called px, py Debug.WriteLine("Data received from user: " + sender.GetName()); Debug.WriteLine("X = " + obj.GetString("px") + ", Y = " + obj.GetString("py")); }
