src/scripts/primus.js
function send(ev, data, fn) {
            /* jshint validthis: true */
            // ignore newListener event to avoid this error in node 0.8
            // https://github.com/cayasso/primus-emitter/issues/3
            if (/^(newListener|removeListener)/.test(ev)) return this;
            this.emitter.send.apply(this.emitter, arguments);
            return this;
          }
function send(ev, data, fn) {
            /* jshint validthis: true */
            // ignore newListener event to avoid this error in node 0.8
            // https://github.com/cayasso/primus-emitter/issues/3
            if (/^(newListener|removeListener)/.test(ev)) return this;
            this.emitter.send.apply(this.emitter, arguments);
            return this;
          }
function send ( ev , data , fn ) { /* jshint validthis: true */ // ignore newListener event to avoid this error in node 0.8 // https://github.com/cayasso/primus-emitter/issues/3 if ( / ^(newListener|removeListener) / . test ( ev ) ) return this ; this . emitter . send . apply ( this . emitter , arguments ) ; return this ; }
Emits to this Spark.

@param {String} ev The event
@param {Mixed} [data] The data to broadcast
@param {Function} [fn] The callback function
@return {Primus|Spark} this
@api public
Emits to this Spark .