json in roomvars & roomlist

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

amnesya
Posts: 18
Joined: 10 Dec 2007, 21:54

json in roomvars & roomlist

Postby amnesya » 26 Jan 2008, 14:33

Hi lads,

is it possible to make the server send all vars to client in json ?

i mean, roomlist and roomvars at the moment arrive in default asxml language.

any chance there is a way to do it in json ?

cheers...

amn.
User avatar
Lapo
Site Admin
Posts: 21691
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Jan 2008, 16:22

Nope, the Json and Raw string protocols can be used from extensions exclusively.
Lapo
--
gotoAndPlay()
...addicted to flash games
amnesya
Posts: 18
Joined: 10 Dec 2007, 21:54

Postby amnesya » 26 Jan 2008, 16:31

is it at leas in the TODO list ?

btw great job.

amnesya
User avatar
Lapo
Site Admin
Posts: 21691
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 28 Jan 2008, 07:15

yes it is
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 30 Jul 2008, 03:58

Has this feature been added yet?

Is it possible to use JSON format for _server.sendGenericMessage() for sending custom room lists?

Thanks
User avatar
Lapo
Site Admin
Posts: 21691
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 30 Jul 2008, 06:41

Has this feature been added yet?

Nope as it requires a redesign of the protocol from the ground up. This will be done in the next major SFS release.

Is it possible to use JSON format for _server.sendGenericMessage() for sending custom room lists?

No, because the API expect an XML format, if you use something else it won't be recognized.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 20 guests