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

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

sadensmol
Posts: 25
Joined: 20 Feb 2018, 05:25

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

Postby sadensmol » 14 Nov 2019, 18:08

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.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 15 Nov 2019, 08:34

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
Lapo
--
gotoAndPlay()
...addicted to flash games
sadensmol
Posts: 25
Joined: 20 Feb 2018, 05:25

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

Postby sadensmol » 15 Nov 2019, 15:04

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!
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 15 Nov 2019, 15:13

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:
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 10 guests