docs: function loginToHub (hubhost, hubport) {
    debug('perform hub login')
  
    hubport = hubport || 5222
  
    return getIdentity(hubhost, hubport)
      .then(function (identity) {
        return loginWithIdentity(identity, hubhost, hubport)
      })
  }