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

Function send

apps/sim/app/api/mothership/execute/route.ts:244–248  ·  view source on GitHub ↗
(event: unknown)

Source from the content-addressed store, hash-verified

242 start(controller) {
243 let forwardedAssistantContent = ''
244 const send = (event: unknown) => {
245 if (!cancelled) {
246 controller.enqueue(encodeNdjson(event))
247 }
248 }
249
250 // Flush response headers promptly and keep long headless runs from
251 // looking idle to worker/proxy HTTP stacks.

Callers 3

startFunction · 0.70
route.tsFile · 0.50
route.tsFile · 0.50

Calls 2

encodeNdjsonFunction · 0.85
enqueueMethod · 0.65

Tested by

no test coverage detected