MCPcopy
hub / github.com/RedPlanetHQ/core / on

Method on

apps/webapp/app/components/browser/cdp-client.ts:118–126  ·  view source on GitHub ↗
(sessionId: string, listener: CdpListener)

Source from the content-addressed store, hash-verified

116 }
117
118 on(sessionId: string, listener: CdpListener): () => void {
119 let set = this.listeners.get(sessionId);
120 if (!set) {
121 set = new Set();
122 this.listeners.set(sessionId, set);
123 }
124 set.add(listener);
125 return () => set!.delete(listener);
126 }
127}
128
129/**

Callers 15

useCdpScreencastFunction · 0.95
runShellCommandFunction · 0.80
getOrLaunchSessionFunction · 0.80
launchSessionFunction · 0.80
readCwdFromJsonlFunction · 0.80
readFirstLineFunction · 0.80
extractTitleMethod · 0.80
readJsonlLinesFunction · 0.80
extractTitleFunction · 0.80
offerRailwayInstallFunction · 0.80
railwayLoginFunction · 0.80
railwayInitFunction · 0.80

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected