class serialization from client to server

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

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

class serialization from client to server

Post by moranil »

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: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: class serialization from client to server

Post by Bax »

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