web: connect to the correct ws endpoint in production

This commit is contained in:
2025-04-15 20:30:02 -07:00
parent 7bb2f405da
commit aca6bce1ff
2 changed files with 9 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ pub fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model {
},
catchup: None,
last_url: Url::current(),
websocket: websocket::init(&mut orders.proxy(Msg::WebSocket)),
websocket: websocket::init("/api/ws", &mut orders.proxy(Msg::WebSocket)),
}
}