User variables for user only

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

Moderators: Lapo, Bax

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

Re: User variables for user only

Post by Lapo »

If you want to send User Variables as SFSArray why don't you simply wrap them into an SFSObject?

Code: Select all

SFSObject data = new SFSObject()
data.putSFSArray("varName1", varArray1);
data.putSFSArray("varName2", varArray2);
...
...
send("someCommand", data, someUser);
cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
tdanylchuk
Posts: 10
Joined: 17 Jun 2016, 13:12

Re: User variables for user only

Post by tdanylchuk »

Since I use this extension call not only for push messages, but for request-response model, I'm using custom wrapper, which also includes Response status in it(for example if error occurred, I'm putting custom error message, status code, etc..)

BR, Taras.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: User variables for user only

Post by Lapo »

Why not simply adding those status code in the SFSObject as well?
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply