MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / off

Method off

extensions/vscode/src/mcp/eventBus.ts:20–22  ·  view source on GitHub ↗
(type: CgcEventType, listener: Listener)

Source from the content-addressed store, hash-verified

18 }
19
20 public off(type: CgcEventType, listener: Listener): void {
21 this.listeners.get(type)?.delete(listener);
22 }
23
24 public emit(type: CgcEventType, payload?: unknown): void {
25 const event: CgcEvent = { type, payload };

Callers 2

onMethod · 0.95
carousel.tsxFile · 0.80

Calls 2

deleteMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected