function AmqpBus(uri, onReady) {
  this.context = new Context(uri);
  if (onReady){
    this.context.on('ready', onReady);
  }
}
/**
 * AmqpBus class
 * - abstract connection to the AMQP server and use a simpler interface to interact with it
 *
 * @param uri
 * @param onReady
 * @constructor
 */
AmqpBus class
- abstract connection to the AMQP server and use a simpler interface to interact with it

@param uri
@param onReady
@constructor
AmqpBus class - abstract connection to the AMQP server and use a simpler interface to interact with it @param uri @param onReady @constructor
function AmqpBus(uri, onReady) {
  this.context = new Context(uri);
  if (onReady){
    this.context.on('ready', onReady);
  }
}
function AmqpBus ( uri , onReady ) { this . context = new Context ( uri ) ; if ( onReady ) { this . context . on ( 'ready' , onReady ) ; } }
AmqpBus class
 - abstract connection to the AMQP server and use a simpler interface to interact with it
AmqpBus class - abstract connection to the AMQP server and use a simpler interface to interact with it