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

Method handlerShutdown

src/deepstream.io.ts:405–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403 }
404
405 private async handlerShutdown () {
406 if (this.config.enabledFeatures.event) {
407 await this.eventHandler.close()
408 }
409 if (this.config.enabledFeatures.rpc) {
410 await this.rpcHandler.close()
411 }
412 if (this.config.enabledFeatures.record) {
413 await this.recordHandler.close()
414 }
415 if (this.config.enabledFeatures.presence) {
416 await this.presenceHandler.close()
417 }
418 if (this.config.enabledFeatures.monitoring) {
419 await this.monitoringHandler.close()
420 }
421 this.transition('handlers-closed')
422 }
423
424 /**
425 * Shutdown the services.

Callers

nothing calls this directly

Calls 2

transitionMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected