diff --git a/crates/runner-host/crates/web-client/src/app.rs b/crates/runner-host/crates/web-client/src/app.rs index 5848a7af..1a8a9589 100644 --- a/crates/runner-host/crates/web-client/src/app.rs +++ b/crates/runner-host/crates/web-client/src/app.rs @@ -26,7 +26,8 @@ use crate::hooks::use_runner_connection; pub fn app() -> Html { let runner_connection = { let host = window().location().host().unwrap_throw(); - let web_socket_url = format!("ws://{host}/board"); + let scheme = window().location().protocol().unwrap_throw().replace("http", "ws"); + let web_socket_url = format!("{scheme}//{host}/board"); info!("Connecting to runner at {web_socket_url}"); use_runner_connection(web_socket_url) };