Start a relay-mode proxy from a IRelayProxyConfig (typically loaded from a config file). This is the programmatic equivalent of running the relay-proxy CLI command.
relay-proxy
Optional
const proxy = await StartRelayProxyByConfig({ server: true, serverPort: 0, originHost: "127.0.0.1", originPort: 9090, targetHost: "127.0.0.1", targetPort: 5432,}, logger); Copy
const proxy = await StartRelayProxyByConfig({ server: true, serverPort: 0, originHost: "127.0.0.1", originPort: 9090, targetHost: "127.0.0.1", targetPort: 5432,}, logger);
6.1.8
2026-07-27
Start a relay-mode proxy from a IRelayProxyConfig (typically loaded from a config file). This is the programmatic equivalent of running the
relay-proxyCLI command.