Use the ably rooms typing subscribe command to subscribe to typing indicators in an Ably Chat room.
Synopsis
ably rooms typing subscribe <room-name> [options]Arguments
room-name Required
Required
The name of the chat room to subscribe to typing indicators in.
Options
--duration | -D
The duration in seconds to subscribe for before automatically unsubscribing.
--client-id
A client ID to use for the subscription.
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
Subscribe to typing indicators in a room:
ably rooms typing subscribe my-roomSubscribe for a specific duration:
ably rooms typing subscribe my-room --duration 60Subscribe to typing indicators using an API key environment variable:
ABLY_API_KEY="YOUR_API_KEY" ably rooms typing subscribe my-roomSubscribe to typing indicators in JSON format:
ably rooms typing subscribe my-room --jsonSee also
- Rooms — Explore all
ably roomscommands. - CLI reference — Full list of available commands.