lib/transport/distribus/DistribusTransport.js
function DistribusTransport(config) {
  this.id = config && config.id || null;
  this['default'] = config && config['default'] || false;
  this.host = config && config.host || new distribus.Host(config);

  this.networkId = this.host.networkId; // FIXME: networkId can change when host connects to another host.
}
function DistribusTransport(config) {
  this.id = config && config.id || null;
  this['default'] = config && config['default'] || false;
  this.host = config && config.host || new distribus.Host(config);

  this.networkId = this.host.networkId; // FIXME: networkId can change when host connects to another host.
}
function DistribusTransport ( config ) { this . id = config && config . id || null ; this [ 'default' ] = config && config [ 'default' ] || false ; this . host = config && config . host || new distribus . Host ( config ) ; this . networkId = this . host . networkId ; // FIXME: networkId can change when host connects to another host. }
Use distribus as transport
@param {Object} config         Config can contain the following properties:
- `id: string`. Optional
- `host: distribus.Host`. Optional
If `host` is not provided,
a new local distribus Host is created.
@constructor
Use distribus as transport