Hi! The APE-Server is now running again...please don't ask me what I did to fix it, I don't have any clue at the moment :D Your solution works great, thank you!
Best regards, Dominik On Nov 7, 9:16 pm, Anthony Catel <[email protected]> wrote: > Can you show me what you are doing ? (both client and server) > > Dominik a crit : > > > > > Ok, after recompiling I always get the error "BAD_CMD", but I did not > > change the configuration or anything... > > > Did you introduce any knew things in the last 2-3 weeks I should > > change to get it working again? > > > Thanks! Best regards, > > > Dominik > > > On Nov 7, 7:41 pm, Dominik <[email protected]> wrote: > > >> Ok, great, thank you! > > >> On Nov 7, 7:35 pm, Anthony Catel <[email protected]> wrote: > > >>> I don't know what version you have, so recompile it (build.sh) > > >>> Dominik a crit : > > >>>> Cool! > > >>>> Do I have to recompile it completely or is it enough to copy some > >>>> files? > > >>>> On Nov 7, 6:43 pm, Anthony Catel <[email protected]> wrote: > > >>>>> Ho Dominik, > > >>>>> I made some change this week. > >>>>> You now have access to the user object in the "connect" hook. > > >>>>> Ape.registerHookCmd("connect", function(params, cmd) { > >>>>> cmd.user.setProperty('foo', params.yeah); > > >>>>> }); > > >>>>> You just need to checkout the last version (master) on github ;) > > >>>>> Anthony > > >>>>> Dominik a crit : > > >>>>>> 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/
