fn portal_thread(ctl: Arc<PortalCtl>)Expand description
The portal thread: opens the session once the first Start has decided the cursor mode, reopens it (restoring with the token the backend gave) whenever that mode changes, and ends with the host session.