Well, the event is the event object, and msg is the actual message.  The actual 
message is also available as an attribute of the event, so event.msg and the 
msg parameter to the handler are the same.

It's basically just done as a convenience, since I think in many cases you only 
care about msg.

-- Murphy

On Oct 22, 2014, at 1:07 PM, Alison Chan <chan7...@kettering.edu> wrote:

> Hi,
> 
> Why are both event and msg passed to a MessageReceived event handler?
> Is there any difference between them? They don't look any different,
> but I want to know if using one or the other is preferred.
> 
> -- 
> Alison Chan
> Kettering University
> chan7...@kettering.edu
> +1 909 278 7753

Reply via email to