lib/channel.js
function Channel(bus, name, local, remote) {
  events.EventEmitter.call(this);
  this.bus = bus;
  this.name = name;
  this.type = 'channel';
  this.id = 'bus:channel:' + name;
  this.logger = bus.logger.withTag(name);
  this.local = local || 'local';
  this.remote = remote || 'remote';

  this.handlers = {
    '1': this._onRemoteConnect,
    '2': this._onMessage,
    '3': this._onRemoteDisconnect,
    '4': this._onEnd
  }
}
function Channel(bus, name, local, remote) {
  events.EventEmitter.call(this);
  this.bus = bus;
  this.name = name;
  this.type = 'channel';
  this.id = 'bus:channel:' + name;
  this.logger = bus.logger.withTag(name);
  this.local = local || 'local';
  this.remote = remote || 'remote';

  this.handlers = {
    '1': this._onRemoteConnect,
    '2': this._onMessage,
    '3': this._onRemoteDisconnect,
    '4': this._onEnd
  }
}
function Channel ( bus , name , local , remote ) { events . EventEmitter . call ( this ) ; this . bus = bus ; this . name = name ; this . type = 'channel' ; this . id = 'bus:channel:' + name ; this . logger = bus . logger . withTag ( name ) ; this . local = local || 'local' ; this . remote = remote || 'remote' ; this . handlers = { '1' : this . _onRemoteConnect , '2' : this . _onMessage , '3' : this . _onRemoteDisconnect , '4' : this . _onEnd } }
Creates a new bi-directional message channel between two endpoints utilizing message queues.
@param bus
@param name
@param local
@param remote
@constructor
Creates a new bi - directional message channel between two endpoints utilizing message queues .