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

Function encodeSSEEvent

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

Source from the content-addressed store, hash-verified

258 * Helper to encode SSE event as Uint8Array
259 */
260export function encodeSSEEvent(event: ExecutionEvent): Uint8Array {
261 return new TextEncoder().encode(formatSSEEvent(event))
262}
263
264/**
265 * Options for creating SSE execution callbacks

Callers 2

sendEventFunction · 0.90
sendEventFunction · 0.85

Calls 1

formatSSEEventFunction · 0.85

Tested by

no test coverage detected