MCPcopy Index your code
hub / github.com/simstudioai/sim / start

Function start

apps/sim/lib/copilot/request/go/stream.test.ts:56–59  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

54 return new Response(
55 new ReadableStream<Uint8Array>({
56 start(controller) {
57 controller.enqueue(new TextEncoder().encode(payload))
58 controller.close()
59 },
60 }),
61 {
62 status: 200,

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected