Transition all remaining messaging over (delete the old stuff)

This commit is contained in:
Travis Ralston 2020-09-30 20:20:31 -06:00
parent 9377306b81
commit f27071ee64
13 changed files with 29 additions and 868 deletions

View file

@ -61,6 +61,15 @@ export class WidgetMessagingStore extends AsyncStoreWithClient<unknown> {
return this.widgetMap.get(widget.id);
}
/**
* Stops the widget messaging instance for a given widget ID.
* @param {string} widgetId The widget ID.
* @deprecated Widget IDs are not globally unique.
*/
public stopMessagingById(widgetId: string) {
this.widgetMap.remove(widgetId)?.stop();
}
/**
* Gets the widget messaging class for a given widget ID.
* @param {string} widgetId The widget ID.