mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:03:34 +03:00
websocket: add option to disable auto-pong reply
This adds another bitflag on CURLOPT_WS_OPTIONS (CURLWS_NOAUTOPONG) that disables the default and automatic PONG reply in the WebSocket layer. Assisted-by: Calvin Ruocco Closes #16744
This commit is contained in:
parent
21fd64645b
commit
c0df01fd94
15 changed files with 204 additions and 9 deletions
|
|
@ -39,7 +39,8 @@ WebSocket with libcurl can be done two ways.
|
|||
The new options to `curl_easy_setopt()`:
|
||||
|
||||
`CURLOPT_WS_OPTIONS` - to control specific behavior. `CURLWS_RAW_MODE` makes
|
||||
libcurl provide all WebSocket traffic raw in the callback.
|
||||
libcurl provide all WebSocket traffic raw in the callback. `CURLWS_NOAUTOPONG`
|
||||
disables automatic `PONG` replies.
|
||||
|
||||
The new function calls:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue