send

abstract suspend fun send(name: String, metadata: ReactionMetadata? = null, headers: ReactionHeaders? = null)

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

This method allows you to send a reaction at the room level. It accepts parameters for defining the type of reaction, metadata, and additional headers.

Return

Unit when the reaction has been successfully sent. Note that it is possible to receive your own reaction via the reactions listener before this method completes.

Parameters

name

The name of the reaction. See SendRoomReactionParams.name.

metadata

Optional metadata to include with the reaction. Defaults to null. See SendRoomReactionParams.metadata

headers

Additional headers to include with the reaction. Defaults to an empty map. See SendRoomReactionParams.headers