createUri(schema, query = {}) {
    return schema + "://" + this._hostname() + this._port() + this.opts.path + this._query(query);
  }
Pauses the transport, in order not to lose packets during an upgrade.

@param onPause