1 parent
98fc153152
commit
fb227943ae
2 files changed
+5
-4
No files matched your search
@@ -37,7 +37,7 @@ warp = { version = "0.3.3", optional = true }
|
|||||||
axum = { version = "0.6.1", optional = true, features = ["ws"] }
|
axum = { version = "0.6.1", optional = true, features = ["ws"] }
|
||||||
|
|
||||||
# salvo
|
# salvo
|
||||||
salvo = { version = "0.37.7", optional = true, features = ["ws"] }
|
salvo = { version = "0.44.1", optional = true, features = ["ws"] }
|
||||||
once_cell = "1.17.1"
|
once_cell = "1.17.1"
|
||||||
|
|
||||||
# actix is ... complicated?
|
# actix is ... complicated?
|
||||||
@@ -51,7 +51,7 @@ tokio = { workspace = true, features = ["full"] }
|
|||||||
dioxus = { workspace = true }
|
dioxus = { workspace = true }
|
||||||
warp = "0.3.3"
|
warp = "0.3.3"
|
||||||
axum = { version = "0.6.1", features = ["ws"] }
|
axum = { version = "0.6.1", features = ["ws"] }
|
||||||
salvo = { version = "0.37.7", features = ["affix", "ws"] }
|
salvo = { version = "0.44.1", features = ["affix", "ws"] }
|
||||||
tower = "0.4.13"
|
tower = "0.4.13"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ fn app(cx: Scope) -> Element {
|
|||||||
async fn main() {
|
async fn main() {
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
|
|
||||||
let addr: SocketAddr = ([127, 0, 0, 1], 3030).into();
|
let addr = "127.0.0.1:3030";
|
||||||
|
let acceptor = TcpListener::new(addr).bind().await;
|
||||||
|
|
||||||
let view = LiveViewPool::new();
|
let view = LiveViewPool::new();
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ async fn main() {
|
|||||||
|
|
||||||
println!("Listening on http://{}", addr);
|
println!("Listening on http://{}", addr);
|
||||||
|
|
||||||
Server::new(TcpListener::bind(addr)).serve(router).await;
|
Server::new(acceptor).serve(router).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[handler]
|
#[handler]
|
||||||
|
|||||||
Reference in new issue
Block a user