pub async fn start_remote_server(
remote_host: &str,
remote_port: u16,
service_name: &str,
service_vers: &str,
services: Arc<HashMap<String, Arc<dyn Service>>>,
) -> Result<(), Error>Expand description
Starts the remote WebSocket server with reconnection and message handling.
This function keeps trying to connect to the remote server in a loop, reconnecting automatically if the connection fails.
Bootstrap gate: the remote server is the WSR (wss.unpispas.es)
and expects place_id in the CONNECT envelope so it can resolve the
caller to a RASPPI row. While ConfigEnv.place_id is None (TPV
in PRE-BOOTSTRAP, no client has done CHECK + place_id yet), we wait
instead of connecting — sending a CONNECT without identity would
just be rejected and waste a slot in the WSR’s pending map.