Skip to content

TransportKind

Defined in: src/types.ts:35

Coarse identifier of the transport binding a VgiRpcServer or HTTP handler. Workers (RPC implementations) read this via CallContext.kind or the ServeStartHook lifecycle hook to tailor startup behaviour (skip HTTP-only caching, enable transport-specific metrics, etc.).

Values are wire/log-friendly strings to match Python’s TransportKind StrEnum byte-for-byte across language boundaries.

  • PIPE — Stdio worker (the standalone VgiRpcServer loop).
  • HTTP — Fetch-style HTTP handler (createHttpHandler).
  • UNIX — AF_UNIX socket handler (the launcher path).
  • TCP — AF_INET socket handler. Raw Arrow-IPC framing over a bare TCP socket — no auth/TLS; use HTTP for untrusted networks.
HTTP: "http";

Defined in: src/types.ts:39

Fetch-style HTTP handler (createHttpHandler).


PIPE: "pipe";

Defined in: src/types.ts:37

Stdio worker — the standalone VgiRpcServer loop.


TCP: "tcp";

Defined in: src/types.ts:44

AF_INET (TCP) socket handler. Raw Arrow-IPC framing over a bare TCP socket — no authentication or TLS; trusted networks only.


UNIX: "unix";

Defined in: src/types.ts:41

AF_UNIX socket handler (the launcher path).