testPort(port)
Tests whether the proxy bound to a given port is currently online.
testPort(port)
Parameters
port (number) – Port to test.
Return Value
number – 1 if online.
Example
// example
const online = sdk.testPort(60000);
console.log("Online:", online === 1);
Last updated
Was this helpful?