createProxyByPortConfigs(...args)

Forwards multiple proxies according to a list of ports. Proxy information is taken from existing configured ports. Ports without configuration are skipped.

async createProxyByPortConfigs(requestId, plan, ports, n)

Parameters

  • requestId (string) – ID used to track request status in event callbacks.

  • plan (string) – ID of the plan to use (default: "1").

  • ports (Uint32Array) – List of ports to forward.

  • n (number) – Number of elements in the ports array.

Return Value

Depends on binding: typically an array of successfully forwarded ports or a return code (rc).

Example

// example

const ports = new Uint32Array([60000, 60001]);
const ret = sdk.createProxyByPortConfigs("request_id", "1", ports, ports.length);

Last updated

Was this helpful?