lib/event.js
function (emitter, eventPrefix) {
        var self = this,
            oldEmit = emitter.emit;

        eventPrefix = eventPrefix || '';

        emitter.emit = function (name, data) {
            oldEmit.apply(emitter, arguments);
            self.send(eventPrefix + name, data);
        };
        return this;
    }
function (emitter, eventPrefix) {
        var self = this,
            oldEmit = emitter.emit;

        eventPrefix = eventPrefix || '';

        emitter.emit = function (name, data) {
            oldEmit.apply(emitter, arguments);
            self.send(eventPrefix + name, data);
        };
        return this;
    }
function ( emitter , eventPrefix ) { var self = this , oldEmit = emitter . emit ; eventPrefix = eventPrefix || '' ; emitter . emit = function ( name , data ) { oldEmit . apply ( emitter , arguments ) ; self . send ( eventPrefix + name , data ) ; } ; return this ; }
Send emitted events from an event emitter on event stream with prefix
@param {events.EventEmitter} emitter - Event Emitter
@param {string} [eventPrefix=""] - Prefix events with this prefix on event stream
@returns {EventStream}
Send emitted events from an event emitter on event stream with prefix