MCPcopy Create free account
hub / github.com/Marus/cortex-debug / subscribe

Method subscribe

src/grapher/datasource.ts:81–84  ·  view source on GitHub ↗
(graphId: string, callback: (point: GraphPoint) => void)

Source from the content-addressed store, hash-verified

79 }
80
81 public subscribe(graphId: string, callback: (point: GraphPoint) => void) {
82 if (!this.subscriptions[graphId]) { this.subscriptions[graphId] = []; }
83 this.subscriptions[graphId].push(callback);
84 }
85}

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected