Jul 4, 2022
Hi @bagder, thanks for the great work.
I plan to use libcurl with event loop to replace libwebsockets. The new implement will support non-blocked frame recv ?
I guess call curl_ws_recv will blocked, so some thing like CURLOPT_WS_RECVFUNCTION, CURLOPT_WS_RECVDATA should exists to handle the callback inside a event loop. (each call should return a full frame with type: ping, pong, binary, text)
Jul 4, 2022
I think maybe it might be better to take this to the discussions rather than to have this "side conversation" here in the PR.
I'm not sure what that means. The proposed API is documented in the wiki and in somewhat more detail in the docs section in the files in this PR.
It will return a full frame is there is one, I think it might not return anything if there isn't a complete frame to return.
This has been discussed at length and I am currently providing the websockets data using the "regular" write callback
- add websockets support to sws - 2300: first very basic websockets test - 2301: first libcurl test for ws (not working yet) - 2302: use the ws callback - 2303: test refused upgrade
Warning: regular rebase + force-pushes are still performed on this branch.
Initial design thoughts
Left for follow-up work