getPortsWithLimit(limit)

Retrieves up to limit ports from the current SDK settings.

getPortsWithLimit(limit)

Parameters

  • limit (number) – Maximum number of ports to return.

Return Value

number[] or Buffer (binding dependent) : limit ports from the current SDK settings.

Example

// example

const slice = sdk.getPortsWithLimit(10);
console.log(slice);

Last updated

Was this helpful?