Hyperlinkv0.8.0-beta.28

Node

Node.AddressedNodetypesrc/internal/nodeCore.ts:175
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).

modelsAnyNodeconnect
export 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;
      }
    // Loose url Tag (`kind: "Http" | "WebSocket"`) — still dialable at runtime.
    | {
        readonly kind: "Http" | "WebSocket";
        readonly url: string;
        readonly path: string | undefined;
      }
  );
Referenced by 8 symbols