Page 2 of 2

Re: Cannot work with the server, it constantly kicks me out.

Posted: 14 Nov 2019, 18:08
by sadensmol
Hi, Lapo.

Thanks for the reply.
Where I can see a protocol you're talking about? Any docs/papers where is it noted?

On as3 side at least we don't have any exception.
Could you please test it on C# and JS side as well - as I just tested and they work well.

Thanks.

Re: Cannot work with the server, it constantly kicks me out.

Posted: 15 Nov 2019, 08:34
by Lapo
Take a look at the examples provided in the Java and C# client API:
http://docs2x.smartfoxserver.com/api-do ... quest.html
http://docs2x.smartfoxserver.com/api-do ... 1fc4ac.htm

As I mentioned it's just a matter of wrapping all of your parameters inside a top SFSObject.
The only problem in your code is that you sent the result of a serialization to the client instead of wrapping it in an SFSObject.

Cheers

Re: Cannot work with the server, it constantly kicks me out.

Posted: 15 Nov 2019, 15:04
by sadensmol
Hi, Lapo.

Actually there is nothing in these examples related to the server code - it's just a client side examples.

I don't like the idea to wrap SFSObject into SFSObject - it sounds like a crap :)
And the approach I'm talking about works well for us on unity and web platforms.

Som it seems you cannot help me with this problem, so okay... Let's put some additional code upon your library...

Thanks for your time!

Re: Cannot work with the server, it constantly kicks me out.

Posted: 15 Nov 2019, 15:13
by Lapo
I've already explained exactly what is the problem, showing you the detailed breakdown of the protocol and pointed out where is the issue

I don't like the idea to wrap SFSObject into SFSObject - it sounds like a crap :)

Can't argue with opinions :)

Let's put some additional code upon your library...

RIght. It is surely simpler than just following the basic advice I gave you. :shock: