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

Method on

packages/widget-sdk/src/message/widget_message.ts:36–38  ·  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 callback

(type: MessageType, callback: (data: IResponse<any>) => void)

Source from the content-addressed store, hash-verified

34 * @param callback
35 */
36 private on(type: MessageType, callback: (data: IResponse<any>) => void) {
37 return this.messageBridge.on(type, callback, this.origin, this.target);
38 }
39
40 /**
41 * Messages in the widget, will only communicate with the main thread and

Callers 7

connectWidgetMethod · 0.95
onInitWidgetMethod · 0.95
onSyncWidgetConfigMethod · 0.95
onRefreshWidgetMethod · 0.95
onSyncActionMethod · 0.95
syncCmdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected