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

Method onMessage

packages/platform-wechat/src/WeChatAdapter.ts:42–46  ·  view source on GitHub ↗
(handler: (event: { data: any }) => void)

Source from the content-addressed store, hash-verified

40 }
41
42 onMessage(handler: (event: { data: any }) => void): void {
43 this._worker.onMessage((res) => {
44 handler({ data: res });
45 });
46 }
47
48 onError(handler: (error: ErrorEvent) => void): void {
49 this._worker.onError((error) => {

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
onMessageMethod · 0.65

Tested by

no test coverage detected