Hello,

I'm working on a Zimlet to audit messages sent using IM.

I'm using "onNewChatWidget" event to be notified when a new chat window is created, but i'm trying with no success to be notified when a new message is sent. I need to get it's content and send it to a backend jsp that will do the logging.

Code:
IM_Audit.prototype.onNewChatWidget = function(widget) {
   // ????    
};
Any idea how can I do this?

Thank you.