MCPcopy Create free account
hub / github.com/forwardemail/superagent / close

Function close

test/node/security.js:67–73  ·  view source on GitHub ↗
(server_)

Source from the content-addressed store, hash-verified

65}
66
67function close(server_) {
68 return new Promise((resolve) => {
69 if (!server_) return resolve();
70 server_.close(() => resolve());
71 server_.destroySockets();
72 });
73}
74
75before(async () => {
76 server = await listen(http.createServer(app), 0);

Callers 1

security.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected