Checks whether the given port is free (not in use).
checkPortAvailable(port)
port (number) – Port to check.
number – 1 if free, 0 if busy.
// example if (sdk.checkPortAvailable(1080) !== 1) { throw new Error("Port is unavailable"); }
Last updated 1 year ago
Was this helpful?