Hyperlinkv0.8.0-beta.28

Node

Node.UnaddressedNodeclasssrc/internal/nodeCore.ts:909

Deriving a transport from a node that never declared one — a bare Node.Tag()("x") has no address/kind, so connect / listen can't know how to reach it. Surfaces on the Layer / Effect error channel (never a sync throw).

errors
export class UnaddressedNode extends Data.TaggedError("UnaddressedNode")<{
  readonly node: string;
}> {
  override get message() {
    return (
      `Node "${this.node}" declares no address/kind, so a transport can't be derived from it. ` +
      `Give the node an address (e.g. Node.Tag()("${this.node}", 3001), { url, kind }, or { path }), ` +
      `or pass a protocol explicitly: connect(node, protocol).`
    );
  }
}
Referenced by 13 symbols