MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / closeServer

Function closeServer

cli/src/commands/login.ts:93–101  ·  view source on GitHub ↗
(server: Server)

Source from the content-addressed store, hash-verified

91}
92
93function closeServer(server: Server): Promise<void> {
94 return new Promise((resolve) => {
95 if (!server.listening) {
96 resolve();
97 return;
98 }
99 server.close(() => resolve());
100 });
101}
102
103function buildBrowserLoginURL(apiUrl: string, callbackUrl: string, cliState: string): string {
104 const loginUrl = new URL("/api/auth/login", apiUrl);

Callers 2

finishFunction · 0.85
waitForBrowserLoginFunction · 0.85

Calls 2

resolveFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected