Rooms messages reactions subscribe

Open in

Use the ably rooms messages reactions subscribe command to subscribe to message reactions in a chat room.

Synopsis

ably rooms messages reactions subscribe <room-name> [options]

Arguments

room-name
Required

The name of the chat room to subscribe to message reactions in.

Options

--raw

Get raw events instead of summaries. Defaults to false.

--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 message reactions in a room:

ably rooms messages reactions subscribe my-room

Subscribe and get raw events:

ably rooms messages reactions subscribe my-room --raw

Subscribe to room message reactions in JSON format:

ably rooms messages reactions subscribe my-room --json

Subscribe to room message reactions in formatted JSON:

ably rooms messages reactions subscribe my-room --pretty-json

See also

  • Rooms — Explore all ably rooms commands.
  • CLI reference — Full list of available commands.