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 Trace.WriteLine("Data received from user: " + sender.GetName()); Trace.WriteLine("X = " + obj.GetString("px") + ", Y = " + obj.GetString("py")); }