use dioxus::prelude::*; use dioxus_liveview::adapters::warp_adapter::warp_socket; use dioxus_liveview::LiveViewPool; use std::net::SocketAddr; use warp::ws::Ws; use warp::Filter; fn app(cx: Scope) -> Element { let mut num = use_state(cx, || 0); cx.render(rsx! { div { "hello warp! {num}" button { onclick: move |_| num += 1, "Increment" } } }) } #[tokio::main] async fn main() { pretty_env_logger::init(); let addr: SocketAddr = ([127, 0, 0, 1], 3030).into(); let index = warp::path::end().map(move || { warp::reply::html(format!( r#"