Type Alias: SubscriptionCallback()
@providerprotocol/ai / middleware/pubsub / SubscriptionCallback
Type Alias: SubscriptionCallback()
Section titled “Type Alias: SubscriptionCallback()”SubscriptionCallback = (
event,cursor?) =>void
Defined in: src/middleware/pubsub/types.ts:27
Subscription callback for live events.
Parameters
Section titled “Parameters”Stream event payload
cursor?
Section titled “cursor?”number
Zero-based event index when adapter supports cursors
Returns
Section titled “Returns”void