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

Function broadcast

packages/editor-app/src/App.tsx:251–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 // 开始定时广播数据 | Start broadcasting data periodically
250 if (!broadcastInterval) {
251 const broadcast = () => {
252 renderDebugService.setEnabled(true);
253 const snap = renderDebugService.collectSnapshot();
254 if (snap) {
255 // 使用 emitTo 发送到独立窗口 | Use emitTo to send to standalone window
256 emitTo('frame-debugger', 'render-debug-snapshot', snap).catch(() => {});
257 }
258 };
259 broadcast(); // 立即广播一次 | Broadcast immediately
260 broadcastInterval = setInterval(broadcast, 500);
261 }

Callers 1

AppFunction · 0.85

Calls 2

collectSnapshotMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected