getPorts()
Retrieves all ports according to the current SDK settings.
getPorts()
Return Value
number[] or Buffer (binding dependent) : All ports according to the current SDK settings.
Example
// example
const arr = sdk.getPorts();
console.log(arr);
Last updated
Was this helpful?