-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websockets #8995
Websockets #8995
Conversation
7a66eeb
to
8364ca8
Compare
9376d25
to
93e9419
Compare
4f782d9
to
9e015a3
Compare
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) |
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 |
696b9c5
to
ff3c4ec
Compare
d4268de
to
098cdc3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
- 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
I intend to merge this soon. |
Warning: regular rebase + force-pushes are still performed on this branch.
Initial design thoughts
Left for follow-up work
curl_ws_poll()
CURLWS_COMPRESS