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.