Hi Folks!
And another question for you ;)
I would like to set certain user properties when he connects to my APE-
Server. Therefor I add a properties-array as a parameter to the start-
method of my APE-Client on client-side. So, for example, I call:
ape.start({'name': 'username'});
Consequently I can add a CommandHook on Server-side, which can read
this property:
Ape.registerHookCmd('connect', function(params, info){
Ape.log('Name: ' + params.name);
};
But at this point the user-object has not been created yet, so it is
not possible to add this property to it, or is it?
A perfect point for this would be a reaction on the adduser-event:
Ape.addEvent('adduser', function(user){
user.setProperty('name', ?????);
}
You see the problem, in this event-callback I have no access to the
properties, which have been sent with the connect-Command...
How can I solve this or where am I going wrong??
Thanks for your help!
Best regards,
Dominik
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/