code: public void eventHubConnect(String peerUrl, String pem) {
          this.eventHub.setPeerAddr(peerUrl, pem);
          this.eventHub.connect();
      }
docs: Set and connect to the peer to be used as the event source.
  @param peerUrl peerUrl
  @param pem permission