getPortsWithStartLimit(...args)

Retrieves a list of ports starting from start with a maximum count of limit.

getPortsWithStartLimit(start, limit)

Parameters

  • start (number) – Starting port.

  • limit (number) – Number of ports to retrieve.

Return Value

number[] or Buffer (binding dependent) : a list of ports starting from start with a maximum count of limit.

Example

// example

const ports = sdk.getPortsWithStartLimit(60001, 10);
console.log(ports);

Last updated

Was this helpful?