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

Function close

src/artifacts/live-server.ts:216–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 lastHash = hashHtml(await renderCurrent(cwd, id, channelPath));
215
216 const close = async (): Promise<void> => {
217 if (closed) return;
218 closed = true;
219 debouncedFlush.cancel();
220 try { watcher?.close(); } catch { /* ignore */ }
221 for (const res of clients) { try { res.end(); } catch { /* ignore */ } }
222 clients.clear();
223 await new Promise<void>(resolve => server.close(() => resolve()));
224 };
225
226 return {
227 id,

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected