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.
The Ably realtime channel.
Register a listener to be called when a discontinuity is detected.
The listener to be called when a discontinuity is detected.
A response that allows control of the subscription.
Send a reaction to the room including some metadata.
This method accepts parameters for a room-level reaction. It accepts an object
an object containing {type, headers, metadata} for the room reaction to be sent. Type is required, metadata and headers are optional.
The returned promise resolves when the reaction was sent. Note that it is possible to receive your own reaction via the reactions listener before this promise resolves.
Subscribe to receive room-level reactions.
The listener function to be called when a reaction is received.
A response object that allows you to control the subscription.
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.