Skip to content

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

@Brade

Description

@Brade

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions