Skip to main content

Interface: SubscribeAllCallbacks

Defined in: packages/core/src/types.ts:50

Categorized callbacks accepted by Processable.subscribeToAll(). Named so composites can share one canonical shape instead of each re-declaring the same inline object type (see core/stream-hub.ts's fanOutSubscribeToAll, which every composite Processable delegates to).

Properties

omit?

optional omit?: string[]

Defined in: packages/core/src/types.ts:55


onComplete?

optional onComplete?: (botId, botName, output) => void

Defined in: packages/core/src/types.ts:52

Parameters

botId

string

botName

string

output

unknown

Returns

void


onError?

optional onError?: (botId, botName, event) => void

Defined in: packages/core/src/types.ts:54

Parameters

botId

string

botName

string

event

BaleybotStreamEvent

Returns

void


onProgressUpdate?

optional onProgressUpdate?: (botId, botName, event) => void

Defined in: packages/core/src/types.ts:53

Parameters

botId

string

botName

string

event

BaleybotStreamEvent

Returns

void


onStreamEvent?

optional onStreamEvent?: (botId, botName, event) => void

Defined in: packages/core/src/types.ts:51

Parameters

botId

string

botName

string

event

BaleybotStreamEvent

Returns

void