Capturing SmartFoxClient.SendObject() messages server-side?

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

VeritasEtUltio
Posts: 6
Joined: 25 Jan 2011, 17:09
Location: Seattle, WA
Contact:

Capturing SmartFoxClient.SendObject() messages server-side?

Postby VeritasEtUltio » 25 Jan 2011, 17:58

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!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 25 Jan 2011, 21:38

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
VeritasEtUltio
Posts: 6
Joined: 25 Jan 2011, 17:09
Location: Seattle, WA
Contact:

Postby VeritasEtUltio » 25 Jan 2011, 22:14

Ok I'll try asking over there, thanks!

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 10 guests