Class VpcConnectorTunnelClient

java.lang.Object
app.ductape.sdk.cloud.VpcConnectorTunnelClient

public final class VpcConnectorTunnelClient extends Object
Opens a TCP-over-WebSocket tunnel to a private VPC host via the Ductape VPC connector relay, then exposes it as a loopback-only local TCP proxy so any plain JDBC driver (which has no custom-stream hook, unlike pg's Pool on the TS side) can connect to it as if it were an ordinary local socket.

Speaks the exact JSON handshake/framing protocol used by sdk/ts/src/cloud/vpc-connector-tunnel.client.ts so the existing backend relay (shared, language-agnostic) needs no changes: stream_openstream_opened/ stream_error, then stream_data/stream_close with base64-encoded payloads correlated by stream_id.