Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: curl websockets
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Felipe Gasper via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 3 Jul 2021 06:36:39 -0400
> On Jul 2, 2021, at 7:47 PM, Nicolas Mora via curl-library <curl-library_at_cool.haxx.se> wrote:
>
>>> Alternatively, have separate curl_ws_send_text and curl_ws_send_binary functions?
>> That could certainly work and would save users sending text from having to set a "this is text" bit. My personal preference is to rather keep it to one function with the bits for type, but I'm here to listen in what peeps want and I will not push my own preferences if I'm in a minority.
> Alternatively, a curl_ws_send_ping and curl_ws_send_pong would be useful.
> Also, considering sending a pong response when a ping request is sent automatically, unless it's specified by the calling program somehow.
IMO curl shouldn’t expose this to the application; instead, have the caller give a ping period and a response timeout. And yeah, curl should respond to pings automatically.
-F
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-07-03
Date: Sat, 3 Jul 2021 06:36:39 -0400
> On Jul 2, 2021, at 7:47 PM, Nicolas Mora via curl-library <curl-library_at_cool.haxx.se> wrote:
>
>>> Alternatively, have separate curl_ws_send_text and curl_ws_send_binary functions?
>> That could certainly work and would save users sending text from having to set a "this is text" bit. My personal preference is to rather keep it to one function with the bits for type, but I'm here to listen in what peeps want and I will not push my own preferences if I'm in a minority.
> Alternatively, a curl_ws_send_ping and curl_ws_send_pong would be useful.
> Also, considering sending a pong response when a ping request is sent automatically, unless it's specified by the calling program somehow.
IMO curl shouldn’t expose this to the application; instead, have the caller give a ping period and a response timeout. And yeah, curl should respond to pings automatically.
-F
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-07-03