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.