API Reference
ChannelBridge
Defined in: channels/channel-bridge.ts:80
Connects a ChannelSource to a Dispatcher. Construct it, then start; stop to tear down.
Constructors
Constructor
new ChannelBridge(options): ChannelBridge;Defined in: channels/channel-bridge.ts:88
Parameters
| Parameter | Type |
|---|---|
options | ChannelBridgeOptions |
Returns
ChannelBridge
Methods
flush()
flush(sessionId): void;Defined in: channels/channel-bridge.ts:119
Send whatever reply text has accumulated for a session right now. Called automatically at each assistant-turn boundary; also exposed so a caller can drive a streaming cadence (e.g. flush every second) if it owns a timer.
Parameters
| Parameter | Type | Description |
|---|---|---|
sessionId | string | The session to flush. |
Returns
void
start()
start(): Promise<void>;Defined in: channels/channel-bridge.ts:103
Start receiving from the source.
Returns
Promise<void>
stop()
stop(): Promise<void>;Defined in: channels/channel-bridge.ts:108
Stop receiving from the source.
Returns
Promise<void>
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
dispatcher | readonly | Dispatcher | The dispatcher this bridge drives — exposed for stats() / observability. | channels/channel-bridge.ts:82 |