Appearance
Class: StreamlabsService
Service that relays Streamlabs events (notably donations) to the app/widget.
Remarks
Accessible everywhere via k.streamlabs. You never have to instantiate this service yourself — it is created by the SDK when the app/widget starts up.
Events received from Streamlabs are re-emitted on k.streamlabs.events; subscribe with events.on(...) to react (for example to donations).
Example
ts
k.streamlabs.events.on('donation', (data) => {
console.log('New Streamlabs donation', data);
});