MCPcopy Create free account
hub / github.com/esmBot/esmBot / stopHTTPServer

Function stopHTTPServer

src/api/index.ts:316–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314});
315
316function stopHTTPServer() {
317 httpServer.close((e) => {
318 if (e) {
319 error(e);
320 process.exit(1);
321 }
322 logger.info("Stopped HTTP server");
323 process.exit();
324 });
325}
326
327let stopping = false;
328

Callers 1

sigHandlerFunction · 0.85

Calls 2

closeMethod · 0.80
errorFunction · 0.70

Tested by

no test coverage detected