lib/controller.js
function Controller (message) {

  if (!(message instanceof Message)) throw new Error('message must be an instanceof Message');

  if (!(this instanceof Controller)) return new Controller(message);

  debug('new controller');

  events.EventEmitter.call(this);

  this.message = message;

  this.data = this.message.data;

}
function Controller (message) {

  if (!(message instanceof Message)) throw new Error('message must be an instanceof Message');

  if (!(this instanceof Controller)) return new Controller(message);

  debug('new controller');

  events.EventEmitter.call(this);

  this.message = message;

  this.data = this.message.data;

}
function Controller ( message ) { if ( ! ( message instanceof Message ) ) throw new Error ( 'message must be an instanceof Message' ) ; if ( ! ( this instanceof Controller ) ) return new Controller ( message ) ; debug ( 'new controller' ) ; events . EventEmitter . call ( this ) ; this . message = message ; this . data = this . message . data ; }
When handling a message we use a controller

@param {Message} message
@throws Error
When handling a message we use a controller