Page 1 of 1

Capturing SmartFoxClient.SendObject() messages server-side?

Posted: 25 Jan 2011, 17:58
by VeritasEtUltio
In our unity client, we serialize up C# objects into a string, stash that string in a SmartFoxClientAPI.Data.SFSObject, and then use SendObject() to send that object to the other players in the room (or to a specific user, or whatever).

I'd like to be able to look at these messages via a server-side extension written in java, but so far I've been unable to find the right interface that will see them (my implementations of ISmartFoxExtension.handleRequest don't register any of this activity).

Am I looking in the wrong place? Is there some example code I could look at to show me how to do this?

This is using Unity3 and SFS 1.6.8.

thanks!

Posted: 25 Jan 2011, 21:38
by ThomasLund
I'm unsure if the server catches these sendObjects. Try to ask in the server forums for that specifically.

One possible way to do this would be to write your own "sendObject" extension code. Should not be more than 10 lines of code max

/Thomas

Posted: 25 Jan 2011, 22:14
by VeritasEtUltio
Ok I'll try asking over there, thanks!