Skip to main content

reconnectSnapshot

@forge/monorepo


@forge/monorepo / backend/src / reconnectSnapshot

Function: reconnectSnapshot()

reconnectSnapshot(input): Promise<{ after: number; state: RunStreamState; }>

Defined in: backend/src/runtime/streaming.ts:38

The persisted snapshot a transport sends on connect: the projected state plus the cursor to resume streaming from. Built purely from the durable log, so it never disagrees with live deltas.

Parameters

input

log

RunEventLog

runId

RunId

tenantId

TenantId

Returns

Promise<{ after: number; state: RunStreamState; }>