Crate example_persist_session

source Β·

Structs§

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 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.