UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

43 lines (42 loc) 2.16 kB
import { Interfaces } from "@oclif/core"; import { ChatBaseCommand } from "../../../chat-base-command.js"; export default class RoomsPresenceEnter extends ChatBaseCommand { static args: { roomId: Interfaces.Arg<string, Record<string, unknown>>; }; static description: string; static examples: string[]; static flags: { "profile-data": Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>; "show-others": Interfaces.BooleanFlag<boolean>; duration: Interfaces.OptionFlag<number | undefined, Interfaces.CustomOptions>; data: Interfaces.OptionFlag<string | 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 room; private roomId; private profileData; private unsubscribeStatusFn; private unsubscribePresenceFn; private cleanupInProgress; private commandFlags; private properlyCloseAblyClient; run(): Promise<void>; private performCleanup; }