MCPcopy Create free account
hub / github.com/GCWing/BitFun / rpcEmit

Function rpcEmit

src/apps/desktop/resources/worker_host.js:33–35  ·  view source on GitHub ↗

* Emit a push event to the MiniApp iframe (no request id, no reply expected). * The host process will forward this to the iframe via "miniapp://worker-event:{appId}". * * @param {string} event - Event name (e.g. 'progress', 'status') * @param {any} data - Event payload

(event, data)

Source from the content-addressed store, hash-verified

31 * @param {any} data - Event payload
32 */
33function rpcEmit(event, data) {
34 process.stderr.write(JSON.stringify({ event, data }) + '\n');
35}
36
37// Make rpcEmit available globally so source/worker.js can use it.
38global.rpcEmit = rpcEmit;

Callers

nothing calls this directly

Calls 2

stringifyMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected