MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / closeServer

Function closeServer

apps/kimi-code/test/cli/server/server.test.ts:586–592  ·  view source on GitHub ↗
(server: Server)

Source from the content-addressed store, hash-verified

584}
585
586function closeServer(server: Server): Promise<void> {
587 return new Promise((resolve) => {
588 server.close(() => {
589 resolve();
590 });
591 });
592}
593
594async function allocateFreePort(host = '127.0.0.1'): Promise<number> {
595 const server = await listenOnce(host, 0);

Callers 3

allocateFreePortFunction · 0.70
allocateAdjacentFreeRunFunction · 0.70
server.test.tsFile · 0.70

Calls 2

closeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected