Skip to main content

Optional handlers that can be supplied when creating streams.

Properties (3)

Property Type Default Required Description
subscriptionAddedHandler⚓︎ (request: StreamSubscription) => void x x

Subscribes to the event which fires when a stream subscription is added.

subscriptionRemovedHandler⚓︎ (request: StreamSubscription) => void x x

Subscribes to the event which fires when a stream subscription is removed.

subscriptionRequestHandler⚓︎ (request: SubscriptionRequest) => void x x

Subscribes for subscription requests. These can be accepted, rejected or accepted on a custom branch. If this handler is attached, each request should be explicitly accepted.