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

create a stream #78

Open
kanalasumant opened this issue Jun 27, 2018 · 1 comment
Open

create a stream #78

kanalasumant opened this issue Jun 27, 2018 · 1 comment

Comments

@kanalasumant
Copy link

Hello and thanks a ton for this wonderful library. I wanted to know if it's possible to obtain a stream object when chunks are being uploaded to the server, so that I can pipe to another part of my application.
Thank you

@sffc
Copy link
Owner

sffc commented Jul 4, 2018

The "progress" event allows you to read individual chunks, but siofu does not natively support the Node stream.Readable interface. Writing a wrapper over siofu exposing that interface should not be hard, though. See here for more info:

https://nodejs.org/api/stream.html#stream_implementing_a_readable_stream

If you do make a wrapper class that supports streaming, feel free to contribute it in a PR.

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