File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,9 +167,17 @@ interface WidgetMessagingOptions {
167167}
168168
169169/**
170- * A running instance of a widget, associated with an iframe and a messaging transport.
171- * Instances must be tracked by WidgetMessagingStore, as only one WidgetMessaging instance
172- * should exist for a given widget.
170+ * A running instance of a widget, associated with an iframe and an active communication
171+ * channel. Instances must be tracked by WidgetMessagingStore, as only one WidgetMessaging
172+ * instance should exist for a given widget.
173+ *
174+ * This class is responsible for:
175+ * - Computing the templated widget URL
176+ * - Starting a {@link ClientWidgetApi} communication channel with the widget
177+ * - Eagerly pushing events from the Matrix client to the widget
178+ *
179+ * @see {@link ElementWidgetDriver } for the class used to *pull* data lazily from the
180+ * Matrix client to the widget on the widget's behalf.
173181 * @see {@link WidgetMessagingStore } for the store that holds these instances.
174182 */
175183export class WidgetMessaging extends TypedEventEmitter < WidgetMessagingEvent , WidgetMessagingEventMap > {
You can’t perform that action at this time.
0 commit comments