What I would like is a function like this:
postUserMessage: function(msg,userid) {}
- where msg is the string message and userid is the user's login nameThis is how I'm currently doing it: - To send a message to a user, we can use pipe=ape.core.getPipe(user.pubid) // userid does not work... need the pubid pipe.send(msg) - So I need to get a pubid for the user - I can get a pubid when any user joins a channel which the current user has joined - I capture the event userJoin for the channel, and save all users' pubid - Am sure we can get this from the channel somehow, but have not yet figured out how Is there a simpler/better way? Would appreciate any help. Regards, Ashutosh On Jul 13, 3: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); > > But dont know how to receive it. > > Please help. > > Regards > Ashutosh -- 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/
