SubscribeOnce API
The SubscribeOnce API can be used to subscribe to a Fusion application event just once.
Using this API, external applications can listen to the application, tab, or object level events from the Fusion application. But this subscription will be disposed of automatically after the first notification.
Syntax
subscribeOnce: (payload: IEventSubscriptionPayload, callbackFunction: (response: IEventResponsePayload) => void) => ISubscriptionContext;
Parameters
Parameter Name | Required? | Description |
---|---|---|
payload | Yes | Request details for the subscription with corresponding event name. |
callbackFunction | Yes | A callback function, which should be getting called whenever the event is triggered inside the Fusion application. |