MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / shutdown

Function shutdown

scripts/dev-web.ts:47–61  ·  view source on GitHub ↗
(exitCode = 0)

Source from the content-addressed store, hash-verified

45}
46
47async function shutdown(exitCode = 0) {
48 if (isShuttingDown) {
49 return
50 }
51
52 isShuttingDown = true
53
54 try {
55 bridge?.child.kill()
56 await removeDevServerMetadata()
57 await server?.close()
58 } finally {
59 process.exit(exitCode)
60 }
61}
62
63async function startDevWebBridge() {
64 await buildDevWebBridge()

Callers 2

startDevWebBridgeFunction · 0.70
dev-web.tsFile · 0.70

Calls 3

removeDevServerMetadataFunction · 0.85
closeMethod · 0.80
killMethod · 0.65

Tested by

no test coverage detected