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

Is stream.on('end') always called when the connection is closed? #128

Open
Brade opened this issue Nov 19, 2013 · 0 comments
Open

Is stream.on('end') always called when the connection is closed? #128

Brade opened this issue Nov 19, 2013 · 0 comments

Comments

@Brade
Copy link

Brade commented Nov 19, 2013

First of all, it's unclear how many different "stream.on" methods there are--I know there is:
data, end, destroy, limit, error

Are there any more? Thru testing, I found that "destroy" ends up calling "end" right after, so I'm wondering if that's the case for other ones like "error" -- I'd like to handle the reconnection attempts at one place if possible, and it seems like "end" is the place to do that.

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

1 participant