Product update · · 1 min read

Emoji reactions with the JavaScript Data API

Add and track emoji reactions in real time using the TalkJS JavaScript Data API.

A collage with emoji reactions

You can now access and manage real-time emoji reaction data for any message using the JavaScript Data API. TalkJS Core 1.5.0 introduces two new objects: ReactionRef, created via MessageRef.reaction, and ReactionSnapshot, available through MessageSnapshot.reactions. These allow you to subscribe to live updates on emoji reactions, see how many reactions a message has, and add or remove reactions programmatically.

This update supports both Unicode and custom emoji, with a limit of 50 distinct emojis per message.

For implementation details, check out the documentation for: