Listening to SDK events
batchSDK(api => {
api.on("event_name", (api, parameter) => {
// Do something with the parameter.
})
})Broadcasted events
Subscription Changed
batchSDK(api => {
api.on("subscriptionChanged", (api, subscription) => {
if (subscription.subscribed) {
// The user has subscribed to notifications
// ...
}
})
})UI Ready
Last updated

