On Thu, 12 Aug 2021, Felipe Gasper via curl-library wrote:
Regarding the plan to add WebSocket to curl, would it be useful to consider,
instead of writing a new implementation, incorporating an existing library?
Yes, I think that's a very sensible way to imlement the discussed API and
matches how we have implemented many other protocols in curl. Standing on the
shoulders of giants etc.
I’ve worked a bit with libwebsockets, which seems quite complete.
Until recently it didn’t integrate into a custom external event loop--as
would be needed for integration into something like curl--but the upstream
code now can.
That looks like a very good contender indeed. License wise it should be fine
and they seem to have a lot of testing and CI going on and it seems like a
mature library. Claims to be "lightweight" and with a small footprint too.
On the con side, without having actually used or worked with it, seems to be
that the docs is *generated* and that uninevitably means it will be poor.
Might not be a big problem though, and is very common.
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html