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

Function sendEvent

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

Source from the content-addressed store, hash-verified

487 const { executionId, workflowId, controller, isStreamClosed, setStreamClosed } = options
488
489 const sendEvent = (event: ExecutionEvent) => {
490 if (isStreamClosed()) return
491 try {
492 controller.enqueue(encodeSSEEvent(event))
493 } catch {
494 setStreamClosed()
495 }
496 }
497
498 return createExecutionCallbacks({
499 executionId,

Callers 2

sendBufferedEventFunction · 0.70
writeBufferedEventMethod · 0.70

Calls 2

encodeSSEEventFunction · 0.85
enqueueMethod · 0.65

Tested by

no test coverage detected