mirror of
https://github.com/curl/curl.git
synced 2026-06-05 01:14:16 +03:00
Update docs/examples/websocket.c
Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
This commit is contained in:
parent
a8e2dd54c2
commit
ca403d815d
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue