ISubscriptionCallbacks interface

The callbacks that can be triggered by a subscription event.

Properties

connect

The callback to invoke when a connection has been made to the list.

disconnect

The callback to invoke when the subscription is disconnected from the list.

notification

The callback to invoke when a change occurs in the list.

Property Details

connect

The callback to invoke when a connection has been made to the list.

connect?: () => void;

Property Value

() => void

disconnect

The callback to invoke when the subscription is disconnected from the list.

disconnect?: (reason: string) => void;

Property Value

(reason: string) => void

notification

The callback to invoke when a change occurs in the list.

notification: () => void;

Property Value

() => void