Skip to content

Type Alias: SubscriptionCallback()

@providerprotocol/ai


@providerprotocol/ai / middleware/pubsub / SubscriptionCallback

SubscriptionCallback = (event, cursor?) => void

Defined in: src/middleware/pubsub/types.ts:27

Subscription callback for live events.

StreamEvent

Stream event payload

number

Zero-based event index when adapter supports cursors

void