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

Function sendEvents

apps/sim/app/api/table/[tableId]/events/stream/route.ts:68–74  ·  view source on GitHub ↗
(events: TableEventEntry[])

Source from the content-addressed store, hash-verified

66 }
67
68 const sendEvents = (events: TableEventEntry[]) => {
69 for (const entry of events) {
70 if (closed) return
71 enqueue(`data: ${JSON.stringify(entry)}\n\n`)
72 lastEventId = entry.eventId
73 }
74 }
75
76 const sendPrunedAndClose = (earliestEventId: number | undefined) => {
77 enqueue(

Callers 1

startFunction · 0.85

Calls 1

enqueueFunction · 0.70

Tested by

no test coverage detected