MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / closeResources

Method closeResources

deepwiki/deepwiki.ts:660–666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

658 }
659
660 private async closeResources(): Promise<void> {
661 if (this.resourcesClosed) return;
662 this.resourcesClosed = true;
663 await this.mcp.close();
664 this.httpAgent.destroy();
665 this.httpsAgent.destroy();
666 }
667
668 private async initOnce(): Promise<void> {
669 if (this.resourcesClosed) {

Callers 2

setupMethod · 0.95
cleanupMethod · 0.95

Calls 2

closeMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected