ProtocolKindThe transport a Node speaks — tag-style names (apps rarely type this alias; they write
the literals or get inference from url / path):
"Http"—RpcClient.layerProtocolHttp(servers / CLIs)"WebSocket"— browser WS (layerProtocolWebsocket/ clientlayerProtocolSocketover WS)"IpcSocket"— Unix-domain socket (same-machine; see ipcServer)
Stamped on the node so the topology is self-describing about how to reach it — connect/client
derive the transport from it. Inferred from a ws(s):// url, an http target, or { path } →
IpcSocket; otherwise declare it explicitly.
modelsNodeipcServer
Source src/internal/nodeCore.ts:611 lines
export type type ProtocolKind =
| "Http"
| "WebSocket"
| "IpcSocket"
The transport a
Node
speaks — tag-style names (apps rarely type this alias; they write
the literals or get inference from url / path):
"Http" — RpcClient.layerProtocolHttp (servers / CLIs)
"WebSocket" — browser WS (layerProtocolWebsocket / client layerProtocolSocket over WS)
"IpcSocket" — Unix-domain socket (same-machine; see
ipcServer
)
Stamped on the node so the topology is self-describing about how to reach it — connect/client
derive the transport from it. Inferred from a ws(s):// url, an http target, or { path } →
IpcSocket; otherwise declare it explicitly.
ProtocolKind = "Http" | "WebSocket" | "IpcSocket";
Referenced by 13 symbols