Thanks Anthony - that sounds like what I want. Would it be worth putting info in the docs about which properties are there for each object, so that developers don't have to keep doing Ape.log !!
Cadrach - I need to be able to pass the id of the pipe, rather than the object. Had to explain why - I just do! Thanks for your help. On Jan 6, 10:47 am, Anthony Catel <[email protected]> wrote: > Hi Ryan, > > the "getPubid()" method doesn't exist. > Use : pipe.getProperty('pubid'); > > Anthony > > Le 06/01/10 11:39, ryan a crit : > > > > > Hello > > > I'm writing an advanced messaging application using APE, my first > > project using it, so trying to get my head around a few things. > > > I'm looking to store a unique user id and the pipe associated with > > that user in a hash, but I also need to be able to send the pubid of > > that pipe/user to the client in order for them to reference it. > > > My problem is that I don't seem to be able to get the pubid even > > though there is a pipe.getPubid() method. > > > my basic code is... > > > // fired when a user gets logged in > > Ape.registerHookCmd("CONNECT", function(params, info) { > > > // add me to online users > > Pelican.onlineusers.set(params.me, info.pipe.getPubid()); > > > ..... > > > Is this even possible? I basically need a way of being able to > > reference the unique user id (params.me) to a user, and then be able > > to send messages to that user... > > > Maybe there is a better way to do this? > > > Thanks, > > Ryan
-- 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/
