rest-vir - v2.2.0
    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
      • endpoint: EndpointDefinition

        The endpoint to send fetches to for detecting a live port.

      • __namedParameters: Readonly<Omit<FindPortOptions, "startOrigin">>

      Returns Promise<number | undefined>

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

      Error if the max scan distance or timeout is reached without finding a valid port.