lib/client.js
function Client(identity) {
  if (!(this instanceof Client)) {
    return new Client(identity);
  }

  assert(identity instanceof Identity, 'Invalid identity supplied');

  this._identity = identity;
  this._podhost = utils.getPodHostFromUserID(this._identity.userID);
  this._baseUrl = 'https://' + this._podhost;
  this._pubkey = this._identity._publicKeyArmored;
}
function Client(identity) {
  if (!(this instanceof Client)) {
    return new Client(identity);
  }

  assert(identity instanceof Identity, 'Invalid identity supplied');

  this._identity = identity;
  this._podhost = utils.getPodHostFromUserID(this._identity.userID);
  this._baseUrl = 'https://' + this._podhost;
  this._pubkey = this._identity._publicKeyArmored;
}
function Client ( identity ) { if ( ! ( this instanceof Client ) ) { return new Client ( identity ) ; } assert ( identity instanceof Identity , 'Invalid identity supplied' ) ; this . _identity = identity ; this . _podhost = utils . getPodHostFromUserID ( this . _identity . userID ) ; this . _baseUrl = 'https://' + this . _podhost ; this . _pubkey = this . _identity . _publicKeyArmored ; }
HTTPS API Client for MuttrPods
@constructor
@param {object} identity
HTTPS API Client for MuttrPods