Skip to content

ChatFacade

Celine Sarafa edited this page May 19, 2023 · 1 revision

Chat Facade

The chat facade provides all methods available in the Chat API.

It also has a couple of extra things on top of the chat API to achieve the features in Web3Inbox.

Message Queue

The chat facade manages a message queue within web3inbox, implemented here.

It simply uses RxJS features to create a queue and provides a function called getUnsentMessages to retrieve messages that failed or pending.

This is configured through messageReplayMaxCount and messageSendTimeout.

Muted Contacts

Another feature Web3Inbox will provide is muted contacts, which simply communicates with an added function in the chat provider.

Clone this wiki locally