Wrapper helper function to use with RxJS the same way as fromEvent, to listen to events from the Communicator.
What does it unlock?
Function that creates an event listener subscription. Allows developers to subscribe to specific events from the Communicator.
Practical Application
Function that creates event listener subscriptions. Alternative to api.addEventListener() — both subscribe
to configurator events. Use to react to state changes, screenshot readiness, viewport loading, showcase status, etc.
AI Coding Best Practices
Prefer api.addEventListener() directly from the Communicator object. If using fromCommunicatorEvent, pass the
event name and handler. Key events: configuratorDataUpdated, viewportReady, screenshotReady, showcaseStatusChanged,
getCameraResult. Always subscribe BEFORE sending commands that trigger responses.
Wrapper helper function to use with RxJS the same way as
fromEvent, to listen to events from the Communicator.What does it unlock?
Function that creates an event listener subscription. Allows developers to subscribe to specific events from the Communicator.
Practical Application
Function that creates event listener subscriptions. Alternative to api.addEventListener() — both subscribe to configurator events. Use to react to state changes, screenshot readiness, viewport loading, showcase status, etc.
AI Coding Best Practices
Prefer api.addEventListener() directly from the Communicator object. If using fromCommunicatorEvent, pass the event name and handler. Key events: configuratorDataUpdated, viewportReady, screenshotReady, showcaseStatusChanged, getCameraResult. Always subscribe BEFORE sending commands that trigger responses.