Skip to content

Commit

Permalink
Update README.md (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes authored Sep 28, 2024
1 parent dd20ebb commit 49aacfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix-ws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn ws(req: HttpRequest, body: web::Payload) -> actix_web::Result<impl Resp
let (response, mut session, mut msg_stream) = actix_ws::handle(&req, body)?;

actix_web::rt::spawn(async move {
while let Some(Ok(msg)) = msg_stream.next().await {
while let Some(Ok(msg)) = msg_stream.recv().await {
match msg {
Message::Ping(bytes) => {
if session.pong(&bytes).await.is_err() {
Expand Down

0 comments on commit 49aacfc

Please sign in to comment.