Rooms reactions send

Open in

Use the ably rooms reactions send command to send a reaction in a chat room.

Synopsis

ably rooms reactions send <room-name> <emoji> [options]

Arguments

room-name
Required

The name of the chat room to send the reaction in.

emoji
Required

The emoji reaction to send.

Options

--metadata

A JSON string of metadata to attach to the reaction.

--client-id

A client ID to use when sending the reaction.

--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

Send a reaction in a room:

ably rooms reactions send my-room "heart"

Send a reaction with metadata:

ably rooms reactions send my-room "thumbsup" --metadata '{"context": "great idea"}'

Send a room reaction using an API key environment variable:

ABLY_API_KEY="YOUR_API_KEY" ably rooms reactions send my-room heart

Send a room reaction and output the result in JSON format:

ably rooms reactions send my-room heart --json

See also

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