Crate example_persist_session
Source - ClientSession π
- The data needed to re-build a client.
- FullSession π
- The full session to persist.
- build_client π
- 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.
- on_room_message π
- Handle room messages.
- persist_sync_token π
- 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_session π
- Restore a previous session.
- sync π
- Setup the client to listen to new messages.