MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / close

Function close

projects/runtime-node/src/cli.ts:183–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 return {
182 ...server,
183 async close() {
184 try {
185 await Promise.all(bridgeRegistrations.map(({ bridge }) => bridge.disconnect()))
186 await Promise.all([processAdapter.killAll(), ptyAdapter.killAll()])
187 } finally {
188 for (const cleanup of cleanupRuntimeModules.splice(0).reverse()) cleanup()
189 for (const { unregister } of bridgeRegistrations) unregister()
190 await server.close()
191 }
192 },
193 }
194}
195

Callers

nothing calls this directly

Calls 6

unregisterFunction · 0.85
allMethod · 0.80
disconnectMethod · 0.65
killAllMethod · 0.65
closeMethod · 0.65
cleanupFunction · 0.50

Tested by

no test coverage detected