UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

21 lines (20 loc) 754 B
import { ChatClient } from "@ably/chat"; import * as Ably from "ably"; import { AblyBaseCommand } from "./base-command.js"; import { BaseFlags } from "./types/cli.js"; export declare abstract class ChatBaseCommand extends AblyBaseCommand { protected _chatRealtimeClient: Ably.Realtime | null; private _chatClient; private _cleanupTimeout; /** * finally disposes of the chat client, if there is one, which includes cleaning up any subscriptions. * * It also disposes of the realtime client. */ finally(error: Error | undefined): Promise<void>; private _cleanup; /** * Create a Chat client and associated resources */ protected createChatClient(flags: BaseFlags): Promise<ChatClient | null>; }