Skip to content

Commit 49aacfc

Browse files
authored
Update README.md (#466)
1 parent dd20ebb commit 49aacfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actix-ws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn ws(req: HttpRequest, body: web::Payload) -> actix_web::Result<impl Resp
2525
let (response, mut session, mut msg_stream) = actix_ws::handle(&req, body)?;
2626

2727
actix_web::rt::spawn(async move {
28-
while let Some(Ok(msg)) = msg_stream.next().await {
28+
while let Some(Ok(msg)) = msg_stream.recv().await {
2929
match msg {
3030
Message::Ping(bytes) => {
3131
if session.pong(&bytes).await.is_err() {

0 commit comments

Comments
 (0)