MCPcopy Create free account
hub / github.com/dailydotdev/apps / broadcast

Function broadcast

packages/world-cli/src/dev.js:149–151  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

147 res.write(`data: ${JSON.stringify(event)}\n\n`);
148 };
149 const broadcast = (event) => {
150 for (const res of clients) send(res, event);
151 };
152 const snapshot = () => ({
153 protocol: PROTOCOL_VERSION,
154 user,

Callers 1

flushFunction · 0.85

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected