diff --git a/integrations/utils/src/lib.rs b/integrations/utils/src/lib.rs index f3e0c9b2f..1050c8091 100644 --- a/integrations/utils/src/lib.rs +++ b/integrations/utils/src/lib.rs @@ -11,14 +11,17 @@ fn autoreload(nonce_str: &str, options: &LeptosOptions) -> String { Some(val) => val, None => options.reload_port, }; + let protocol = match options.reload_ws_protocol { + leptos_config::ReloadWSProtocol::WS => "'ws://'", + leptos_config::ReloadWSProtocol::WSS => "'wss://'", + }; match std::env::var("LEPTOS_WATCH").is_ok() { true => format!( r#"