sseFrames
@forge/monorepo / backend/src / sseFrames
Function: sseFrames()
sseFrames(
events):AsyncIterable<string>
Defined in: backend/src/graphql/sse.ts:86
Map a RunEvent async stream to graphql-sse text frames, terminated by complete.
The complete frame is emitted in a finally, so it is sent whether the stream ended on a terminal
event or because the consumer stopped — a client should be told the response is over either way.
Parameters
events
AsyncIterable<RunEvent>
Returns
AsyncIterable<string>