MCPcopy
hub / github.com/deepstreamIO/deepstream.io / pluginsShutdown

Method pluginsShutdown

src/deepstream.io.ts:383–393  ·  view source on GitHub ↗

* Close any (perhaps partially initialised) plugins.

()

Source from the content-addressed store, hash-verified

381 * Close any (perhaps partially initialised) plugins.
382 */
383private async pluginsShutdown () {
384 const shutdownPromises = Object.keys(this.services.plugins).reduce((promises, pluginName) => {
385 const plugin = this.services.plugins[pluginName]
386 if (plugin.close) {
387 promises.push(plugin.close())
388 }
389 return promises
390 }, [] as Array<Promise<void>> )
391 await Promise.all(shutdownPromises)
392 this.transition('plugins-closed')
393}
394
395/**
396 * Begin deepstream shutdown.

Callers

nothing calls this directly

Calls 2

transitionMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected