getPortsFreeWithLimit(limit)

Retrieves up to limit free (unused) ports from the current settings.

getPortsFreeWithLimit(limit)

Parameters

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

Return Value

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

Example

// example

const free = sdk.getPortsFreeWithLimit(5);

Last updated

Was this helpful?