Changed default port.
This commit is contained in:
parent
f61d7b2ca6
commit
2021a4fab0
@ -26,13 +26,14 @@ async fn main() -> std::io::Result<()> {
|
|||||||
broadcaster: Arc::new(tx)
|
broadcaster: Arc::new(tx)
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("Server is running on http://localhost:8080");
|
println!("Server is running on http://localhost:3478");
|
||||||
|
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
App::new()
|
App::new()
|
||||||
.app_data(web::Data::new(app_state.clone()))
|
.app_data(web::Data::new(app_state.clone()))
|
||||||
.route("/ws", web::get().to(websocket_handler))
|
.route("/ws", web::get().to(websocket_handler))
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8080")?
|
.bind("127.0.0.1:3478")?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user