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

Function closeLarkChannel

packages/runtime/src/bots/feishu-bridge.ts:22–29  ·  view source on GitHub ↗
(channel: ClosableLarkChannel)

Source from the content-addressed store, hash-verified

20 * handshake cannot keep reconnecting in the background.
21 */
22export async function closeLarkChannel(channel: ClosableLarkChannel): Promise<void> {
23 try {
24 channel.rawWsClient?.close({ force: true });
25 } catch {
26 // Best effort: the public disconnect path still disposes channel state.
27 }
28 await channel.disconnect().catch(() => {});
29}
30
31export function feishuMessageToEvent(
32 message: NormalizedMessage,

Callers 3

stopMethod · 0.85
disconnectChannelMethod · 0.85

Calls 2

closeMethod · 0.65
disconnectMethod · 0.65

Tested by

no test coverage detected