Live Reaction
Live Reactions are interactions that users can perform during a livestream. These reactions can be anything, such as like, dislike, love, etc. The specific reaction types are determined by the client. The SDK provides convenient functions to add and query reactions.
Create a live reaction
The createReaction
function within liveReaction repository allows user to create a reaction to a livestream. This function requires following parameters:
referenceId
- The target post ID linked with a stream.referenceType
- The referenceType should be 'post'.reactionName
- The name of the reaction that you will add. Reaction names are case sensitive, i.e. "like" & "Like" are two different reactions.streamId
- The streamID that you will add the reaction to.
Observe Live Reactions
To observe reactions added to a stream, the getReactions
requires a post ID of the post linked with the stream.
Last updated
Was this helpful?