params will be populated by the info that you provide in core.request (in
the form {info1:"test1", info2:"test2"} )info will be populated by APE server automatically with things like pubid, IP (I think), etc. Hope this helps. Le 14 mars 2012 13:47, sanoi <[email protected]> a écrit : > Sorry copy & paste error. > > This is the example i try to get to work: > > Ape.registerCmd("foocmd", true, function(params, info) { > > Ape.log("The user ip : ("+info.ip+"), foo : " + params.foo);}); > > > > So the command is calles foocmd. And now my question is: How do I have to > call the function, to get the info object defined. Cause when I call the > function like this: > client.addEvent('ready', function() { > console.log('Client connected'); > client.core.request.send('showip'); > console.log('Done!'); > }); > > Thanks > Jonas > Am Mittwoch, 14. März 2012 14:26:39 UTC+1 schrieb Serfess: > >> Can u show your exact code please... > > -- > 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/ > -- 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/
