Hyperlinkv0.8.0-beta.28

Hyperlink

Hyperlink.peersFromconstsrc/Hyperlink.ts:5494
<Self, S extends Spec>(
  tag: HyperlinkTag<Self, S>,
  peers: Record<string, PeerServiceOf<S>>
): Layer.Layer<PeersId<Self>>

Provide the peers capability from an explicit client map — for a holder that already holds the per-node clients (a dashboard's per-node bundles), or for a test. peersLayer is the auto-connecting form (from the tag's distributed set + urls); this one takes the clients as-is.

nodes & fleetpeerspeersLayer
Source src/Hyperlink.ts:54944 lines
export const peersFrom = <Self, S extends Spec>(
  tag: HyperlinkTag<Self, S>,
  peers: Record<string, PeerServiceOf<S>>,
): Layer.Layer<PeersId<Self>> => Layer.succeed(tag[peersSym], peers);
Referenced by 2 symbols