MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / onData

Function onData

e2e/desktop-packaged/linux-vm/repro.mjs:138–145  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

136 const debugPort = await new Promise((resolve, reject) => {
137 const timer = setTimeout(() => reject(new Error(`no CDP URL\n${out}`)), 120_000);
138 const onData = (b) => {
139 out = (out + b.toString()).slice(-16_384);
140 const m = out.match(/DevTools listening on ws:\/\/[^/]+:(\d+)\//);
141 if (m) {
142 clearTimeout(timer);
143 resolve(Number(m[1]));
144 }
145 };
146 child.stdout.on("data", onData);
147 child.stderr.on("data", onData);
148 child.once("exit", (c, s) =>

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected