class serialization from client to server

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

moranil
Posts: 10
Joined: 15 May 2011, 14:32
Location: India

class serialization from client to server

Postby moranil » 27 Nov 2013, 15:11

we have our game client in AS3/flash. we are porting client to html5.
we are able to receive class object/other data from the server in html5 client.
we are also able to send data to server but not able to serialize a class.

Does the html5 api implement this feature?
Is there is any example for that?

we are trying this, and getting null pointer exception or class cast exception.

basically we have a class defined in a package say "poker.UserPreference"
it has basic properties like showChat(bool), showHand(bool)

if this feature not supported by html5 api, we will have to change lot of code in server side and flash client as we want
both clients to coexists.

any hint would be great help for us
Regards
Anil
----------------------------
Jai Ho!
User avatar
Bax
Site Admin
Posts: 4610
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: class serialization from client to server

Postby Bax » 27 Nov 2013, 16:11

Only true OOP languages with runtime reflection are supported, sorry.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 27 guests