MCPcopy
hub / github.com/callstack/agent-device / closeServer

Function closeServer

test/integration/smoke-web-platform.test.ts:380–385  ·  view source on GitHub ↗
(server: Server)

Source from the content-addressed store, hash-verified

378}
379
380async function closeServer(server: Server): Promise<void> {
381 if (!server.listening) return;
382 await new Promise<void>((resolve, reject) => {
383 server.close((error) => (error ? reject(error) : resolve()));
384 });
385}
386
387function readSnapshotLabels(json: any): string[] {
388 const nodes = Array.isArray(json?.data?.nodes) ? json.data.nodes : [];

Callers 1

cleanupWebSmokeFunction · 0.70

Calls 2

resolveFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected