MCPcopy
hub / github.com/anomalyco/opencode / on

Method on

packages/opencode/test/cli/cmd/tui/attention.test.ts:20–23  ·  view source on GitHub ↗
(event: FocusEvent, listener: () => void)

Source from the content-addressed store, hash-verified

18 }
19
20 on(event: FocusEvent, listener: () => void) {
21 this.listeners[event].add(listener)
22 return this
23 }
24
25 off(event: FocusEvent, listener: () => void) {
26 this.listeners[event].delete(listener)

Callers 15

index.tsFile · 0.80
registerIpcHandlersFunction · 0.80
index.tsFile · 0.80
sidecar.tsFile · 0.80
registerWindowFunction · 0.80
wireWindowRecoveryFunction · 0.80
wireZoomFunction · 0.80
spawnLocalServerFunction · 0.80
allocatePortFunction · 0.80
forwardLinesFunction · 0.80
runCommandFunction · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected