MCPcopy Index your code
hub / github.com/codeaashu/claude-code / off

Method off

web/lib/collaboration/socket.ts:294–296  ·  view source on GitHub ↗
(type: T["type"], handler: EventHandler<T>)

Source from the content-addressed store, hash-verified

292 }
293
294 off<T extends CollabEvent>(type: T["type"], handler: EventHandler<T>): void {
295 this.handlers.get(type)?.delete(handler as EventHandler);
296 }
297
298 private dispatch(event: CollabEvent): void {
299 this.handlers.get(event.type)?.forEach((h) => h(event));

Callers 14

onMethod · 0.95
useCostSummaryFunction · 0.80
getInputPromptFunction · 0.80
handleCloseCleanupMethod · 0.80
doneFunction · 0.80
constructorMethod · 0.80
initBridgeCoreFunction · 0.80
bridgeMainFunction · 0.80
StatsProviderFunction · 0.80
REPLFunction · 0.80
removeWsListenersMethod · 0.80
cleanupFunction · 0.80

Calls 2

deleteMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected