src/scripts/primus.js
function Emitter(conn) {
            if (!(this instanceof Emitter)) return new Emitter(conn);
            this.ids = 1;
            this.acks = {};
            this.conn = conn;
            if (this.conn) this.bind();
          }
function Emitter(conn) {
            if (!(this instanceof Emitter)) return new Emitter(conn);
            this.ids = 1;
            this.acks = {};
            this.conn = conn;
            if (this.conn) this.bind();
          }
function Emitter ( conn ) { if ( ! ( this instanceof Emitter ) ) return new Emitter ( conn ) ; this . ids = 1 ; this . acks = { } ; this . conn = conn ; if ( this . conn ) this . bind ( ) ; }
Initialize a new `Emitter`.

@param {Primus|Spark} conn
@return {Emitter} `Emitter` instance
@api public
Initialize a new Emitter .