AddressedNode<HSelf>An AnyNode that can derive connect with no protocol argument —
kind set, and either a url (Http/WebSocket) or a Unix path (IpcSocket).
Source src/internal/nodeCore.ts:17524 lines
export type type AddressedNode<HSelf> =
NodeKey<HSelf> &
(
| {
readonly kind: "IpcSocket"
readonly path: string
readonly url: string | undefined
}
| {
readonly kind: "Http"
readonly url: string
readonly path: string | undefined
}
| {
readonly kind: "WebSocket"
readonly url: string
readonly path: string | undefined
}
| {
readonly kind: "Http" | "WebSocket"
readonly url: string
readonly path: string | undefined
}
)
An
AnyNode
that can derive
connect
with no protocol argument —
kind set, and either a url (Http/WebSocket) or a Unix path (IpcSocket).
AddressedNode<function (type parameter) HSelf in type AddressedNode<HSelf>HSelf> = type NodeKey<HSelf> = Context.Key<
HSelf,
NodeProtocol
>
The Context key of a
Node
(HSelf = its identity): a service whose value is the
transport
NodeProtocol
. Stored on a node-bearing tag under
nodeSym
; read by
Hyperlink.client
to resolve where to connect (its requirement channel).
NodeKey<function (type parameter) HSelf in type AddressedNode<HSelf>HSelf> &
(
| {
readonly kind: "IpcSocket"kind: "IpcSocket";
readonly path: stringpath: string;
readonly url: string | undefinedurl: string | undefined;
}
| {
readonly kind: "Http"kind: "Http";
readonly url: stringurl: string;
readonly path: string | undefinedpath: string | undefined;
}
| {
readonly kind: "WebSocket"kind: "WebSocket";
readonly url: stringurl: string;
readonly path: string | undefinedpath: string | undefined;
}
// Loose url Tag (`kind: "Http" | "WebSocket"`) — still dialable at runtime.
| {
readonly kind: "Http" | "WebSocket"kind: "Http" | "WebSocket";
readonly url: stringurl: string;
readonly path: string | undefinedpath: string | undefined;
}
);
Referenced by 8 symbols