Hyperlinkv0.8.0-beta.28

Node

AnyNode

A Tag erased — its transport endpoints set, plus the primary address (url and/or Unix path) and ProtocolKind kind (the first-declared endpoint, kept for single-protocol readers), so a tag's distributed set is self-describing about where AND how to reach each one.

export type AnyNode = NodeKey<unknown> & {
  readonly url: string | undefined;
  readonly path: string | undefined;
  readonly kind: ProtocolKind | undefined;
  readonly endpoints?: Endpoints;
  /** Stamped advertise conflict policy (default `"inherit"` on ordinary nodes). */
  readonly onConflict?: OnConflict;
  /** The bare port a node was declared with ({@link portSym}) — the dial resolves the host via Config. */
  readonly [portSym]?: number;
};
Referenced by 27 symbols