MCPcopy Create free account
hub / github.com/esengine/esengine / publish

Method publish

packages/editor-core/src/tokens.ts:81–81  ·  view source on GitHub ↗

发布消息 | Publish message

(topic: string, data?: T)

Source from the content-addressed store, hash-verified

79 subscribeOnce<T = unknown>(topic: string, handler: MessageHandler<T>): () => void;
80 /** 发布消息 | Publish message */
81 publish<T = unknown>(topic: string, data?: T): Promise<void>;
82 /** 注册请求处理器 | Register request handler */
83 registerRequest<TRequest = unknown, TResponse = unknown>(
84 topic: string,

Callers 15

getFileActionHandlersMethod · 0.65
ParticleEditorPanelFunction · 0.65
getFileActionHandlersMethod · 0.65
loadTilemapFileFunction · 0.65
TilemapEditorPanelFunction · 0.65
handleEditClickMethod · 0.65
getFileActionHandlersMethod · 0.65
handleLocaleChangeFunction · 0.65
AnimationClipsEditorFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected