Skip to content

Sync conversations and messages

🎥 walkthrough: Syncing

This video provides a walkthrough of key concepts required to implement syncing correctly.

Sync a specific conversation

Get all new messages and group updates (name, description, etc.) for a specific conversation from the network.

Browser
await client.conversation.sync();

Sync new conversations

Get any new group chat or DM conversations from the network.

Browser
await client.conversations.sync();

Sync all new conversations, messages, and updates

Sync all new group chat and DM conversations, messages, and installation-related updates (consent states, HMAC keys, etc.) from the network. We recommend that you run this sync in the background and call it more frequently than not.

Browser
await client.conversations.syncAll();