MCPcopy
hub / github.com/virattt/dexter / subscribe

Method subscribe

src/utils/logger.ts:53–57  ·  view source on GitHub ↗
(fn: LogSubscriber)

Source from the content-addressed store, hash-verified

51 }
52
53 subscribe(fn: LogSubscriber): () => void {
54 this.subscribers.add(fn);
55 fn([...this.logs]); // Send current logs immediately
56 return () => this.subscribers.delete(fn);
57 }
58
59 clear() {
60 this.logs = [];

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected