Skip to main content

openRunEventSse

@retinue/monorepo


@retinue/monorepo / backend/src / openRunEventSse

Function: openRunEventSse()

openRunEventSse(input): AsyncIterable<string>

Defined in: backend/src/graphql/sse.ts:98

Open a resumable SSE stream for a run: catch up from the durable log after after, then follow live, encoded as SSE frames. Ends on the run's terminal event.

Parameters​

input​

after​

number

channelFor?​

(conversationId) => string

conversationId​

ConversationId

live​

LiveEventSource

log​

RunEventLog

runId​

RunId

signal?​

{ aborted: boolean; }

signal.aborted​

boolean

tenantId​

TenantId

Returns​

AsyncIterable<string>