MCPcopy Create free account
hub / github.com/apitable/apitable / emit

Method emit

packages/widget-sdk/src/message/widget_message.ts:46–48  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 10

connectWidgetMethod · 0.95
connectCbMethod · 0.95
syncWidgetConfigMethod · 0.95
syncCmdMethod · 0.95
expandRecordMethod · 0.95
expandRecordPickerMethod · 0.95
mouseListenerMethod · 0.95
expandDevConfigMethod · 0.95
fetchDatasheetMethod · 0.95

Calls 1

emitMethod · 0.65

Tested by

no test coverage detected