Skip to content

TransportKind

Defined in: src/types.ts:33

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).
HTTP: "http";

Defined in: src/types.ts:37

Fetch-style HTTP handler (createHttpHandler).


PIPE: "pipe";

Defined in: src/types.ts:35

Stdio worker — the standalone VgiRpcServer loop.


UNIX: "unix";

Defined in: src/types.ts:39

AF_UNIX socket handler (the launcher path).