MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / on

Method on

projects/web/src/electronAPI/pty.ts:142–147  ·  view source on GitHub ↗
(event: "output" | "exit", handler: EventHandler)

Source from the content-addressed store, hash-verified

140 }
141
142 on(event: "output" | "exit", handler: EventHandler): void {
143 if (!this.listeners.has(event)) {
144 this.listeners.set(event, [])
145 }
146 this.listeners.get(event)!.push(handler)
147 }
148
149 off(event: string, handler: EventHandler): void {
150 const handlers = this.listeners.get(event)

Callers 15

createListenerFunction · 0.45
startExecutorFunction · 0.45
loadFunction · 0.45
mainFunction · 0.45
addContextMenuFunction · 0.45
loadFunction · 0.45
manageWindowsAutoHideFunction · 0.45
loadFunction · 0.45
loadFunction · 0.45
attachRuntimeSocketFunction · 0.45

Calls 4

hasMethod · 0.80
pushMethod · 0.80
setMethod · 0.65
getMethod · 0.65

Tested by 4

startCodexAppServerMockFunction · 0.36
constructorMethod · 0.36
startCodexAppServerMockFunction · 0.36
nextMessageFunction · 0.36