isRunningPort(port)

Checks if the given port is currently running (forwarded).

isRunningPort(port)

Parameters

  • port (number) – Port to check.

Return Value

number – 1 if running, 0 if not.

Example

// example

const running = sdk.isRunningPort(60000) === 1;
console.log("Running:", running);

Last updated

Was this helpful?