Skip to content
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

Support of Websocket #130

Open
andre2007 opened this issue Feb 22, 2021 · 3 comments
Open

Support of Websocket #130

andre2007 opened this issue Feb 22, 2021 · 3 comments

Comments

@andre2007
Copy link

Both, libcurl and Vibe.d supports websocket. It would be great if you could add Websocket support to requests.

@ikod
Copy link
Owner

ikod commented Feb 22, 2021

Hello @andre2007

It would be interesting. I never looked at websocket, so I have to investigate

@ikod
Copy link
Owner

ikod commented Mar 5, 2021

Hello @andre2007

I looked a bit into this topic. Looks like websocket is essentially async protocol, it should use some event loop to operate. Right now I'm not sure how to integrate requests with event loop framework.

@andre2007
Copy link
Author

Hello @ikod
Yes, I assume this is the difficult part. Adam also has Websockets in his implementation (based on his own http implementation instead of curl). https://www.github.com/adamdruppe/arsd/tree/master/http2.d
Maybe you can look here how he has solved the event loop problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants