PersistentAI API Documentation / @persistentai/fireflow-types / startInboundBridge
Function: startInboundBridge()
startInboundBridge<
T>(dbos,sourceWorkflowId,edgeId):object
Defined in: packages/fireflow-types/src/flow/execution/runtime/stream-bridge.ts:173
Start an inbound stream bridge. Creates a local MultiChannel and begins pumping data from a remote DBOS stream into it.
The returned channel is immediately usable by consumers — they will receive data in real-time as it arrives from the DBOS stream.
Runs at WORKFLOW level. The pump runs concurrently (fire-and-forget) and the channel will be closed when the remote stream closes.
Type Parameters
T
T
Parameters
dbos
DBOS context service (for readStream)
sourceWorkflowId
string
The workflow that writes to the stream
edgeId
string
The edge ID (used to derive stream key)
Returns
object
The local MultiChannel that consumers can iterate
channel
channel:
MultiChannel<T>
done
done:
Promise<void>