> On Jul 2, 2021, at 7:47 PM, Nicolas Mora via curl-library > <curl-library@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