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

Function delayedCode

e2e/cloud/mcp-sse-replay.test.ts:240–245  ·  view source on GitHub ↗
(marker: string, delayMs: number)

Source from the content-addressed store, hash-verified

238};
239
240const delayedCode = (marker: string, delayMs: number): string =>
241 [
242 `const marker = ${JSON.stringify(marker)};`,
243 `await new Promise((resolve) => setTimeout(resolve, ${delayMs}));`,
244 "return marker;",
245 ].join("\n");
246
247scenario(
248 "MCP streamable HTTP · POST response abort is replayed on the next GET stream",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected