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

Streams support in the browsers #292

Open
baybal opened this issue Feb 17, 2022 · 5 comments
Open

Streams support in the browsers #292

baybal opened this issue Feb 17, 2022 · 5 comments

Comments

@baybal
Copy link

baybal commented Feb 17, 2022

Stream support in chrome been there for many years already (the reason YouTube is working there.)

https://developer.mozilla.org/en-US/docs/Web/API/Streams_API

Would you be open to the idea to make createReadStream and createWriteStream use streams API in the browser?

@perry-mitchell
Copy link
Owner

I'd absolutely be open to this.. it was the eventual intention. I'd happily accept a PR. I'd get to it eventually but not sure how long that might be 😅

@baybal
Copy link
Author

baybal commented Feb 21, 2022

I researched streams a bit, and it seems the only way to use them is to switch to fetch instead of XHR

@perry-mitchell
Copy link
Owner

perry-mitchell commented Feb 21, 2022 via email

@jiwangyihao
Copy link

So what's the progress?
Will this feature be implemented in a short time?
I'm looking forward to it!!!

@perry-mitchell
Copy link
Owner

The new v5 pre-release is now out, which uses fetch (being required for streams as mentioned above), so I think this could go ahead now.

I'd accept a PR, but I'll also get around to this when I'm able.

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

No branches or pull requests

3 participants