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

Method emit

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

* Send messages. * @param widgetId * @param type * @param data

(widgetId: string, type: MessageType, data?: any, messageId?: string)

Source from the content-addressed store, hash-verified

96 * @param data
97 */
98 emit(widgetId: string, type: MessageType, data?: any, messageId?: string) {
99 this.messageBridge.emit(type, this.wrapEmitData({ success: true, data: data }), widgetId, messageId);
100 }
101
102 /**
103 * Broadcast messages.

Callers 7

onConnectWidgetMethod · 0.95
initWidgetMethod · 0.95
syncWidgetConfigMethod · 0.95
refreshWidgetMethod · 0.95
syncCmdOptionsResultMethod · 0.95
syncActionMethod · 0.95

Calls 2

wrapEmitDataMethod · 0.95
emitMethod · 0.65

Tested by

no test coverage detected