Handling new message

LViS.Curate.ON_NEW

Fires when a new messages are received. Array of new messages are passed into the handler.

Example

$(curate).bind(LViS.Curate.ON_NEW, function (e, messages) {
// do your stuff here, e.g. update list of messages in DOM
});