diff --git a/websockets/echo-actorless/src/main.rs b/websockets/echo-actorless/src/main.rs index f449b60..8e7b34e 100644 --- a/websockets/echo-actorless/src/main.rs +++ b/websockets/echo-actorless/src/main.rs @@ -38,8 +38,8 @@ async fn echo_ws(req: HttpRequest, stream: web::Payload) -> Result>, ) -> Result { @@ -81,7 +81,7 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/ws-basic").route(web::get().to(echo_ws))) .app_data(web::Data::new(tx.clone())) .service(web::resource("/ws-broadcast").route(web::get().to(broadcast_ws))) - .service(web::resource("/send").route(web::post().to(send))) + .service(web::resource("/send").route(web::post().to(send_to_broadcast_ws))) // enable logger .wrap(middleware::Logger::default()) })