serveUnix
function serveUnix(target, options): Promise<ServeUnixHandle>;Defined in: src/launcher/serve-unix.ts:92
Bind an AF_UNIX socket and serve target over per-connection IPC streams.
target is a bare Protocol, or a VgiRpcServer carrying
additional protocols (and identity) – the same host object every other
transport accepts, so all of them serve one hosted set. With a server, the
server-level options here (serverId, protocolVersion, enableDescribe,
dispatchHook, externalLocation, onServeStart) must be left unset.
Sequential listen — one client at a time, just like Python’s serve_unix.
Each connection gets its own dispatch loop and shares the protocol.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
target |
| Protocol | VgiRpcServer |
options |
ServeUnixOptions |
Returns
Section titled “Returns”Promise<ServeUnixHandle>
