Establish a SOCKS5 tunnel to target via the configured proxy.
target
Automatically retries on transient failures (network unreachable, TTL expired) using exponential backoff based on proxy config.
Proxy connection parameters
Destination host/port (and optional TLS settings)
Factory that opens a raw TCP connection
A Socks5Tunnel whose .conn is ready for application data
Socks5Tunnel
.conn
On handshake failure, auth failure, timeout, or proxy error
const tunnel = await createSocks5Tunnel( { host: "proxy.example.com", port: 1080, username: "u", password: "p" }, { host: "api.example.com", port: 443, tls: true }, denoTcpConnector,);// tunnel.conn is now a transparent TCP (or TLS) stream to api.example.com:443 Copy
const tunnel = await createSocks5Tunnel( { host: "proxy.example.com", port: 1080, username: "u", password: "p" }, { host: "api.example.com", port: 443, tls: true }, denoTcpConnector,);// tunnel.conn is now a transparent TCP (or TLS) stream to api.example.com:443
Establish a SOCKS5 tunnel to
targetvia the configured proxy.Automatically retries on transient failures (network unreachable, TTL expired) using exponential backoff based on proxy config.