domain/basic.js
function Basic(client, channel, done){
  EE.call(this);
  this.client = client;
  this.channel = channel;
  this.id = channel.$getId();
  this.publishCallbackMethod = DEFAULT_PUBLISH_ANSWER_WAIT_MECHANISM;
  this.timeout = DEFAULT_WAIT_TIMEOUT;
  this.lastConfirmSendId = 1;
  this.lastMessageId = 1;

  this.done = done;

  this.lastError = null;

  return this;
}
function Basic(client, channel, done){
  EE.call(this);
  this.client = client;
  this.channel = channel;
  this.id = channel.$getId();
  this.publishCallbackMethod = DEFAULT_PUBLISH_ANSWER_WAIT_MECHANISM;
  this.timeout = DEFAULT_WAIT_TIMEOUT;
  this.lastConfirmSendId = 1;
  this.lastMessageId = 1;

  this.done = done;

  this.lastError = null;

  return this;
}
function Basic ( client , channel , done ) { EE . call ( this ) ; this . client = client ; this . channel = channel ; this . id = channel . $getId ( ) ; this . publishCallbackMethod = DEFAULT_PUBLISH_ANSWER_WAIT_MECHANISM ; this . timeout = DEFAULT_WAIT_TIMEOUT ; this . lastConfirmSendId = 1 ; this . lastMessageId = 1 ; this . done = done ; this . lastError = null ; return this ; }
Work with basic content.

The Basic class provides methods that support an industry-standard messaging model. Work with channels.

@class Basic
@extends EventEmitter
@param {BRAMQPClient} client Client object that returns from bramqp#openAMQPCommunication() method.
@param {Channel} channel Channel object (should be opened).
@param {Function} done
@return {Basic}
@constructor
Work with basic content .