MCPcopy
hub / github.com/simstudioai/sim / start

Function start

apps/sim/executor/handlers/mothership/mothership-handler.test.ts:142–147  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

140 return new Response(
141 new ReadableStream({
142 start(controller) {
143 for (const event of events) {
144 controller.enqueue(encoder.encode(`${JSON.stringify(event)}\n`))
145 }
146 controller.close()
147 },
148 }),
149 {
150 status: 200,

Callers

nothing calls this directly

Calls 2

enqueueMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected