We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd20ebb commit 49aacfcCopy full SHA for 49aacfc
actix-ws/README.md
@@ -25,7 +25,7 @@ async fn ws(req: HttpRequest, body: web::Payload) -> actix_web::Result<impl Resp
25
let (response, mut session, mut msg_stream) = actix_ws::handle(&req, body)?;
26
27
actix_web::rt::spawn(async move {
28
- while let Some(Ok(msg)) = msg_stream.next().await {
+ while let Some(Ok(msg)) = msg_stream.recv().await {
29
match msg {
30
Message::Ping(bytes) => {
31
if session.pong(&bytes).await.is_err() {
0 commit comments