Find the first port, starting with the port in the given origin, that, with the given path, is alive and matches, if provided, isValidResponse.
isValidResponse
The endpoint to send fetches to for detecting a live port.
undefined if the given origin has no port number to start with.
undefined
Error if the max scan distance or timeout is reached without finding a valid port.
@rest-vir/api
Find the first port, starting with the port in the given origin, that, with the given path, is alive and matches, if provided,
isValidResponse.