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

Function formatSSEEvent

apps/sim/lib/workflows/executor/execution-events.ts:253–255  ·  view source on GitHub ↗
(event: ExecutionEvent)

Source from the content-addressed store, hash-verified

251 * Helper to create SSE formatted message
252 */
253export function formatSSEEvent(event: ExecutionEvent): string {
254 return `data: ${JSON.stringify(event)}\n\n`
255}
256
257/**
258 * Helper to encode SSE event as Uint8Array

Callers 2

enqueueEventsFunction · 0.90
encodeSSEEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected