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

Method on

packages/widget-sdk/src/message/main_message.ts:117–119  ·  view source on GitHub ↗

* Receiving messages. * @param widgetId * @param type * @param callback

(widgetId: string, type: MessageType, callback: (data: any, messageId?: string) => void)

Source from the content-addressed store, hash-verified

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.

Callers 10

onConnectWidgetMethod · 0.95
onWidgetConfigMethod · 0.95
onSyncCmdOptionsMethod · 0.95
onExpandRecordMethod · 0.95
onExpandRecordPickerMethod · 0.95
onMouseListenerMethod · 0.95
onExpandDevConfigMethod · 0.95
onFetchDatasheetMethod · 0.95
createSocketMethod · 0.45

Calls 1

interceptorFunction · 0.90

Tested by

no test coverage detected