example_persist_session

Function sync

Source
pub(crate) async fn sync(
    client: Client,
    initial_sync_token: Option<String>,
    session_file: &Path,
) -> Result<()>
Expand description

Setup the client to listen to new messages.