Thanks Bayuadji,
Had forgotten to mention the answer to my actual question:
to receive a private message, we need to hook on to the unipipecreate
event like so:
ape.addEvent('uniPipeCreate', function(pipe, options) {
pipe.onRaw('data', function(raw,pipe) {
myprivatemessagehandler(raw.data.from.properties.name,unescape(raw.data.msg),APELoader.currentUser);
});
});
On Jul 14, 12:26 pm, Bayuadji <[email protected]> wrote:
> Hi,
>
> On Tue, Jul 13, 2010 at 5:05 PM, bijoor <[email protected]> wrote:
> > Need help with how to capture the event when another user has sent a
> > private message.
>
> > I think I know how to send:
> > For sending a private message to a user with pubid = userid, we can
> > use:
> > pipe = ape.core.getPipe(userid);
> > pipe.send(msg);
>
> I am kind beginner myself,
> but I think to it have the same way to capture the event,
> by using
>
> ape.onRaw('data',function(raw,pipe){ console.log("raw") };
>
> I think the differences come from the raw object.
>
> -adji-
>
> --
> --------------------------------------------------------------http://www.tumbletooth.org
> my linkedin profile :http://www.linkedin.com/in/bayuadji
> --------------------------------------------------------------
--
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/