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

How can I cancel a stream from the client side? #52

Open
ghost opened this issue Aug 4, 2015 · 4 comments
Open

How can I cancel a stream from the client side? #52

ghost opened this issue Aug 4, 2015 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 4, 2015

No description provided.

@ghost
Copy link
Author

ghost commented Aug 4, 2015

I have a service where people can upload large files and I would like to give them the option to cancel in the event that the connection is too slow and they give up or something similar.

@nkzawa
Copy link
Owner

nkzawa commented Aug 7, 2015

I thinks you can use unpipe, pause and cork methods.

please see https://nodejs.org/api/stream.html

@nkzawa nkzawa added the question label Aug 7, 2015
@jvkassi
Copy link

jvkassi commented Oct 14, 2015

Is it possible to also use it to stop the connection on the server side with those methods ?
Can you give a sample for cancelling stream on the client and server side please ?

@deefens
Copy link

deefens commented Jun 23, 2017

Has anyone got this ever working? A small code sample would be greatly appreciated.

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

No branches or pull requests

3 participants