Extension response will ignore if the sfsobject param contains curly brackets

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

bestDroid
Posts: 8
Joined: 11 Oct 2018, 17:01

Extension response will ignore if the sfsobject param contains curly brackets

Postby bestDroid » 22 Aug 2022, 14:25

Hi,
If you want to get a result from server that contains a string with curly brackets { }, the response will not send to client and ignore.
For example

Code: Select all

data.putUtfString("message", "Hello word }");
This line of code cause extension response will be ignored.
I have this issue on Smartfox 2.14.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extension response will ignore if the sfsobject param contains curly brackets

Postby Lapo » 22 Aug 2022, 15:46

Hi,
can you please specify what kind of client API are you using and their version number?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
bestDroid
Posts: 8
Joined: 11 Oct 2018, 17:01

Re: Extension response will ignore if the sfsobject param contains curly brackets

Postby bestDroid » 23 Aug 2022, 08:31

I am not sure which version we are using. how can I figure out the client api version ?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extension response will ignore if the sfsobject param contains curly brackets

Postby Lapo » 23 Sep 2022, 07:20

Hi,
I am sorry I did not receive a notification for your post. :(
The API version can be printed out by calling

Code: Select all

sfs.getVersion()

where sfs is an instance of the main SmartFox class.

The above example is in Java.
In C# you have:

Code: Select all

sfs.Version

and Javascript:

Code: Select all

sfs.version


Again, apologies for the delay
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 61 guests