Use the ably rooms presence get command to get all current presence members in a chat room.
Synopsis
ably rooms presence get <room-name> [options]Arguments
room-name Required
Required
The name of the chat room to get presence members for.
Options
--limit
The maximum number of presence members to return. Defaults to 100.
--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
Get all presence members in a room:
ably rooms presence get my-roomGet presence members with a limit:
ably rooms presence get my-room --limit 10Get room presence members in JSON format:
ably rooms presence get my-room --jsonGet room presence members in formatted JSON output:
ably rooms presence get my-room --pretty-jsonSee also
- Rooms — Explore all
ably roomscommands. - CLI reference — Full list of available commands.