Skip to main content
Subscriptions push events to your driver. They travel through the same envelope as commands — a subscription is a command whose response returns a subscriptionId:

Subscribing

Issue the subscription:* command in activate; the response carries the id you use to unsubscribe:
From then on, matching events arrive in onEvent:
Dispatch on event.type, read event.body, and unsubscribe with command:subscription:remove. Each subscription topic below lists its request (the subscription:* req) and the body of the event it delivers.

Scene events

The properties you pass when subscribing to element events select which fields populate each returned SubscribedDrawdyElement. elements-replaced reports both the new elements (drawdyElements) and the ones they replaced (replaced). scene:activity fires whenever there is activity inside the rect you registered.

Camera events

moved-rapid fires continuously during movement; moved-debounced fires once movement settles.

DOM events

theme-changed delivers the updated ModuleStyling whenever the user switches theme.

Webview events

Input events