Widget Events
External systems (stream decks, chatbots, dashboards, webhooks) can push custom events to your overlay widgets via the REST API. Your widget listens for these events through the standard event bus.Listening for Widget Events
Event Naming
Events sent via the REST API arrive prefixed withwidget:event::
REST API event field | Widget hears |
|---|---|
custom:confetti | widget:event:custom:confetti |
custom:score_update | widget:event:custom:score_update |
custom:poll:start | widget:event:custom:poll:start |
Local Widget Events (via emit)
Events emitted locally withSBCanvas.emit() are prefixed with widget: (no event: segment):
Comparison
| Source | emit format | listen format |
|---|---|---|
| REST API | custom:confetti | widget:event:custom:confetti |
Local SBCanvas.emit() | 'combo-hit' | widget:combo-hit |