Crate example_persist_session
source ·Structs§
- ClientSession πThe data needed to re-build a client.
- FullSession πThe full session to persist.
Functions§
- 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.