dazeus.js
function (event, parameters) {
    if (event === 'COMMAND') {
        event = 'command_' + parameters[3];
    }
    parameters.unshift(event);
    this.emit.apply(this, parameters);
}
function (event, parameters) {
    if (event === 'COMMAND') {
        event = 'command_' + parameters[3];
    }
    parameters.unshift(event);
    this.emit.apply(this, parameters);
}
function ( event , parameters ) { if ( event === 'COMMAND' ) { event = 'command_' + parameters [ 3 ] ; } parameters . unshift ( event ) ; this . emit . apply ( this , parameters ) ; }
For event-type messages, this calls the correct event handlers.
@param  {String} event     Event type name
@param  {Array} parameters Parameters for the event
For event - type messages this calls the correct event handlers .