* Receiving messages. * @param widgetId * @param type * @param callback
(widgetId: string, type: MessageType, callback: (data: any, messageId?: string) => void)
| 115 | * @param callback |
| 116 | */ |
| 117 | on(widgetId: string, type: MessageType, callback: (data: any, messageId?: string) => void) { |
| 118 | this.messageBridge.on(type, interceptor(callback), widgetId, widgetId); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Clear the relevant data when the widget is uninstalled. |
no test coverage detected