RoomReactions

interface RoomReactions

This interface is used to interact with room-level reactions in a chat room: subscribing to reactions and sending them.

Get an instance via Room.reactions.

Types

Link copied to clipboard
fun interface Listener

An interface for listening to new reaction events

Properties

Link copied to clipboard
abstract val channel: Channel

Returns an instance of the Ably realtime channel used for room-level reactions. Avoid using this directly unless special features that cannot otherwise be implemented are needed.

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun send(type: String, metadata: ReactionMetadata? = null, headers: ReactionHeaders? = null)

Sends a reaction to the specified room along with optional metadata.

Link copied to clipboard

Subscribe to receive room-level reactions.