Update docs/examples/websocket.c

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
This commit is contained in:
Davidson Francis 2025-04-18 21:33:52 -03:00 committed by GitHub
parent a8e2dd54c2
commit ca403d815d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,12 +90,12 @@ static int recv_pong(CURL *curl, const char *expected_payload)
printf("Error: timeout.\n");
break;
}
} while (result == CURLE_AGAIN);
} while(result == CURLE_AGAIN);
if(result != CURLE_OK) {
fprintf(stderr, "ws: curl_ws_recv returned %u, received %u\n",
(unsigned int)result, (unsigned int)rlen);
return (int)result;
fprintf(stderr, "ws: curl_ws_recv returned %u, received %u\n",
(unsigned int)result, (unsigned int)rlen);
return (int)result;
}
if(meta->flags & CURLWS_PONG) {