ygrek / ocurl

OCaml bindings to libcurl
https://ygrek.org/p/ocurl
MIT License
59 stars 32 forks source link

websocket upgrade? #75

Open c-cube opened 5 months ago

c-cube commented 5 months ago

I see in curl's doc that websockets are supported, but I don't see them in https://ygrek.org/p/ocurl/api/Curl.html . Is it explicitly not supported? Would it be a lot of work to add support, if there was a will?

nojb commented 5 months ago

I allow myself to give a first response (but of course @ygrek will give the ultimate answer). This project is basically on maintenance mode but patches to extend coverage of libcurl are received with some frequency; they are reviewed and generally accepted (as a glance at the list of closed PRs will show you). So I would say that if you are interested in adding bindings for the WebSocket functions, your best bet is to put a patch together and submit it for integration.

One issue to keep in mind is that these functions are marked "EXPERIMENTAL" which means they could change in the future. I don't know if there is any policy regarding such functions in ocurl.

ygrek commented 5 months ago

Yes, patches are welcome ofcourse. Experimental can just mark the same in ocaml interface and we will be free to break them in the future.