UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

39 lines (38 loc) 1.91 kB
import { Interfaces } from "@oclif/core"; import { ChatBaseCommand } from "../../../chat-base-command.js"; export default class RoomsPresenceSubscribe extends ChatBaseCommand { static args: { roomId: Interfaces.Arg<string, Record<string, unknown>>; }; static description: string; static examples: string[]; static flags: { duration: Interfaces.OptionFlag<number | undefined, Interfaces.CustomOptions>; "access-token": Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; "api-key": Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; "client-id": Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; "control-host": Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; env: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; endpoint: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; host: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; port: Interfaces.OptionFlag<number | undefined, Interfaces.CustomOptions>; tlsPort: Interfaces.OptionFlag<number | undefined, Interfaces.CustomOptions>; tls: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; json: Interfaces.BooleanFlag<boolean>; "pretty-json": Interfaces.BooleanFlag<boolean>; token: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; verbose: Interfaces.BooleanFlag<boolean>; "web-cli-help": Interfaces.BooleanFlag<boolean>; }; private ablyClient; private chatClient; private roomId; private room; private presenceSubscription; private unsubscribeStatusFn; private cleanupInProgress; private commandFlags; private properlyCloseAblyClient; run(): Promise<void>; private performCleanup; }