DialableTargetDialable Tag targets — enough address for connect / auto-wired Hyperlink.client with no extra protocol argument.
Source src/internal/nodeCore.ts:3535 lines
export type type DialableTarget =
| string
| number
| {
readonly path: string
readonly kind?: "IpcSocket"
}
| {
readonly url: string
readonly kind?: ProtocolKind
}
Dialable
Tag
targets — enough address for
connect
/ auto-wired
Hyperlink.client
with no extra protocol argument.
DialableTarget =
| number
| string
| { readonly path: stringpath: string; readonly kind?: "IpcSocket" | undefinedkind?: "IpcSocket" }
| { readonly url: stringurl: string; readonly kind?: ProtocolKindkind?: type ProtocolKind =
| "IpcSocket"
| "Http"
| "WebSocket"
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 };