LookupClientPickSoft pick when lookupClient sees N>1 directory rows (D4) and no live
Lookup.Advice prefer matches a row. "first" = rows[0]; custom sync
fn returns the dial target.
Source src/Hyperlink.ts:27655 lines
export type type LookupClientPick =
| "first"
| ((
rows: ReadonlyArray<LookupDirectoryEntry>
) => LookupDirectoryEntry)
Soft pick when
lookupClient
sees N>1 directory rows (D4) and no live
Lookup.Advice
prefer matches a row. "first" = rows[0]; custom sync
fn returns the dial target.
LookupClientPick =
| "first"
| ((
rows: ReadonlyArray<LookupDirectoryEntry>rows: interface ReadonlyArray<T>ReadonlyArray<class LookupDirectoryEntryclass LookupDirectoryEntry {
kind: 'Http' | 'WebSocket' | 'IpcSocket';
serves: ReadonlyArray<string>;
nodeKey: string;
url: string | undefined;
path: string | undefined;
}
Directory row — dial target plus HyperService keys this node serves (listen catalog).
LookupDirectoryEntry>,
) => class LookupDirectoryEntryclass LookupDirectoryEntry {
kind: 'Http' | 'WebSocket' | 'IpcSocket';
serves: ReadonlyArray<string>;
nodeKey: string;
url: string | undefined;
path: string | undefined;
}
Directory row — dial target plus HyperService keys this node serves (listen catalog).
LookupDirectoryEntry);
Referenced by 1 symbols