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

Function send

packages/world-cli/src/dev.js:146–148  ·  view source on GitHub ↗
(res, event)

Source from the content-addressed store, hash-verified

144 let version = 0;
145
146 const send = (res, event) => {
147 res.write(`data: ${JSON.stringify(event)}\n\n`);
148 };
149 const broadcast = (event) => {
150 for (const res of clients) send(res, event);
151 };

Callers 2

broadcastFunction · 0.70
startDevFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected