MCPcopy
hub / github.com/nodejs/undici / stop

Method stop

test/node-fetch/utils/server.js:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 async stop () {
28 // Destroy all active connections before closing
29 // This prevents 'close' from hanging on platforms like Windows
30 this.server.closeAllConnections()
31 this.server.close()
32 return once(this.server, 'close')
33 }
34
35 get port () {
36 return this.server.address().port

Callers 3

request.jsFile · 0.45
main.jsFile · 0.45
response.jsFile · 0.45

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected