MCPcopy Index your code
hub / github.com/callstack/agent-device / closeHttpConnections

Function closeHttpConnections

src/__tests__/test-utils/loopback.ts:76–80  ·  view source on GitHub ↗
(server: LoopbackServer)

Source from the content-addressed store, hash-verified

74}
75
76function closeHttpConnections(server: LoopbackServer): void {
77 const maybeHttpServer = server as http.Server;
78 maybeHttpServer.closeAllConnections?.();
79 maybeHttpServer.closeIdleConnections?.();
80}
81
82export function waitForHttpOk(url: string, timeoutMs: number): Promise<void> {
83 const deadline = Date.now() + timeoutMs;

Callers 1

closeLoopbackServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected