MCPcopy Create free account
hub / github.com/p2r3/convert / dispatchEvent

Method dispatchEvent

src/TraversionGraph.ts:330–332  ·  view source on GitHub ↗
(state: string, path: ConvertPathNode[])

Source from the content-addressed store, hash-verified

328 }
329
330 private dispatchEvent(state: string, path: ConvertPathNode[]) {
331 this.listeners.forEach(l => l(state, path));
332 }
333
334 public async* searchPath(from: ConvertPathNode, to: ConvertPathNode, simpleMode: boolean) : AsyncGenerator<ConvertPathNode[]> {
335 // Dijkstra's algorithm

Callers 1

searchPathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected