mirror of
https://github.com/csehviktor/status-monitor.git
synced 2025-08-08 18:06:14 +02:00
edit default port for websocket
This commit is contained in:
@@ -43,8 +43,8 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
ws.on_upgrade(move |websocket| handle_ws_connection(websocket, clients))
|
ws.on_upgrade(move |websocket| handle_ws_connection(websocket, clients))
|
||||||
});
|
});
|
||||||
|
|
||||||
println!("starting websocket server on :8080");
|
println!("starting websocket server on :3000");
|
||||||
warp::serve(ws_route).run(([0, 0, 0, 0], 8080)).await;
|
warp::serve(ws_route).run(([0, 0, 0, 0], 3000)).await;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user