rest-vir - v1.2.6
    Preparing search index...

    Function findLivePort

    • Find the first port, starting with the port in the given origin, that, with the given path, is alive and matches, if provided, isValidResponse.

      Parameters

      • originWithStartingPort: string
      • pathToCheck: `/${string}`
      • __namedParameters: Readonly<Omit<FindPortOptions, "overwriteOrigin">> = {}

      Returns Promise<number | undefined>

      undefined if the given origin has no port number to start with

      Error if the max scan distance has been reached without finding a valid port.