2012/2/17 Beldar <beldar....@gmail.com>
> Anyone have any thoughts about this?
> On 7 feb, 14:04, Beldar <beldar....@gmail.com> 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.