2012/2/17 Beldar <[email protected]>

> Anyone have any thoughts about this?
>
> On 7 feb, 14:04, Beldar <[email protected]> wrote:
> > Hi,
> >
> > I'm creating something from the Chat demo, and I noticed when you
> > submit a message it just makes a pipe.send(msg) , but at the same time
> > it's declared this.onCmd('send', this.cmdSend), where the method
> > cmdSend writes the message to the chat window.
> >
> > Ok so there're my questions:
> >
> > 1. The onCmd event occurs before the data is sent or after?
>

 Accord Request/Request.js's function send(), onCmd event fired before that
data is sent.


>
>
> > 2. If the answer to the first question is before, it's possible to add
> > additional data to the message or modify it?
> >
> > Thanks!
>
>
Accord Request/Request.js's function parseCmd(),
message is passed to onCmd() by copied to evParams, so, you can't modify it.
But you can modify Request.js to do this.


> --
> 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/

Reply via email to