Function whatsappweb::connection::with_persistent_session [−][src]
pub fn with_persistent_session<H: WhatsappWebHandler<H> + Send + Sync + 'static>(
persistent_session: PersistentSession,
handler: H
) -> (WhatsappWebConnection<H>, JoinHandle<()>)
Create new connection and restore the session with the given persistent_session
.