* Messages in the widget, will only communicate with the main thread and * will only accept messages from the main thread, so simplify the parameters here. * @param type * @param data
(type: MessageType, data: IResponse<any>, messageId?: string, allowTimeout: boolean = false)
| 44 | * @param data |
| 45 | */ |
| 46 | private async emit(type: MessageType, data: IResponse<any>, messageId?: string, allowTimeout: boolean = false) { |
| 47 | return await this.messageBridge.emit(type, { ...data, origin: this.origin }, this.target, messageId, allowTimeout); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Listening for connections. |
no test coverage detected