- The data needed to re-build a client.
- The full session to persist.
- Build a new client.
- login 🔒Login with a new device.
- main 🔒A simple example to show how to persist a client’s data to be able to restore it.
- Handle room messages.
- Persist the sync token for a future session. Note that this is needed only when using
sync_once. Other sync methods get the sync token from the store.
- Restore a previous session.
- sync 🔒Setup the client to listen to new messages.