_server.setUserVariables()
Posted: 15 Nov 2007, 10:39
He
When i set the uservariables serverside and want a update to the clients i get the XML twice.
Second XML is misformatted, the variables are correctly updated serverside and newly logged in clients are getting the right vars.
the xml looks like this
the correct one comes in first
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='1'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /></body></msg>, (len: 135)
varsupdate
üservarschanged Ura
The second one is misformatted.
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='20'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /><user id='20' /></body></msg>, (len: 152)
Looks i get the last section twice <user id='20' />
All other xml messages after this are also not eatable for the API.
Config.
Debian. Last stable.
sfs pro 1.5.9
flex 3 beta 2.
flash 8 pro.
a workaround is to send a _server.sendGenericMessage with the correct info to the clients.
Do i oversee something?
When i set the uservariables serverside and want a update to the clients i get the XML twice.
Second XML is misformatted, the variables are correctly updated serverside and newly logged in clients are getting the right vars.
the xml looks like this
the correct one comes in first
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='1'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /></body></msg>, (len: 135)
varsupdate
üservarschanged Ura
The second one is misformatted.
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='20'><vars><var n='Ura' t='n'><![CDATA[1316.14357]]></var></vars><user id='20' /><user id='20' /></body></msg>, (len: 152)
Looks i get the last section twice <user id='20' />
All other xml messages after this are also not eatable for the API.
Config.
Debian. Last stable.
sfs pro 1.5.9
flex 3 beta 2.
flash 8 pro.
a workaround is to send a _server.sendGenericMessage with the correct info to the clients.
Do i oversee something?