MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / pushReload

Function pushReload

src/artifacts/live-server.ts:111–116  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

109 let closed = false;
110
111 const pushReload = (hash: string) => {
112 const frame = `event: reload\ndata: ${hash}\n\n`;
113 for (const res of clients) {
114 try { res.write(frame); } catch { /* dropped client; pruned on its 'close' */ }
115 }
116 };
117
118 const flush = () => {
119 void renderCurrent(cwd, id, channelPath).then(html => {

Callers 1

flushFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected