MCPcopy Create free account
hub / github.com/apache/maka / disconnectChannel

Method disconnectChannel

packages/runtime/src/bots/feishu-bridge.ts:220–224  ·  view source on GitHub ↗
(channel: LarkChannel)

Source from the content-addressed store, hash-verified

218 }
219
220 private async disconnectChannel(channel: LarkChannel): Promise<void> {
221 if (this.channel === channel) this.channel = null;
222 this.clearSubscriptions();
223 await closeLarkChannel(channel);
224 }
225
226 private clearSubscriptions(): void {
227 for (const unsubscribe of this.unsubscribe.splice(0)) unsubscribe();

Callers 1

startMethod · 0.95

Calls 2

clearSubscriptionsMethod · 0.95
closeLarkChannelFunction · 0.85

Tested by

no test coverage detected