This module adds offline support and provides Flow APIs for Stream Chat. Check out the Offline Support guide for more info.
To start using this library in your project, see Dependencies, and then Getting Started.
Offline support is essential for a good chat user experience, as mobile networks tend to lose connection frequently. This package ensures you can still send messages, reactions and create new channels while offline.
It also implements a retry strategy to resend messages, reactions and channels.
Stream's Chat API exposes dozens of events that all update the chat state. Messages can be created, updated and removed. Channels can be updated, muted, deleted, members can be added to them.
The end result is that you need a lot of boilerplate code to keep your local chat state up to date. This library handles all this logic for you and simply exposes Flow objects to observe the current state.