diff --git a/src/main.rs b/src/main.rs index d16cc31..025d525 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,13 +26,14 @@ async fn main() -> std::io::Result<()> { broadcaster: Arc::new(tx) }; - println!("Server is running on http://localhost:8080"); + println!("Server is running on http://localhost:3478"); + HttpServer::new(move || { App::new() .app_data(web::Data::new(app_state.clone())) .route("/ws", web::get().to(websocket_handler)) }) - .bind("127.0.0.1:8080")? + .bind("127.0.0.1:3478")? .run() .await }