start_local_server

Function start_local_server 

Source
pub async fn start_local_server(
    host: &str,
    port: u16,
    services: Arc<HashMap<String, Arc<dyn Service>>>,
    service_name: &str,
    service_vers: &str,
    use_tls: bool,
) -> Result<(), Error>
Expand description

Starts a local WebSocket server (plain WS or WSS depending on use_tls).

When use_tls is true the server presents the embedded local.unpispas.es certificate so browsers can connect via wss://local.unpispas.es:<port> without the Chrome Local Network Access prompt.