Skip to content

Conversation

@Juul
Copy link

@Juul Juul commented Mar 2, 2018

Don't crash, even if user does not specify a stream error handler.

socket.onerror = onerror
socket.onmessage = onmessage

proxy.on('error', function(){})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore errors? It can lead to even more long debugging then you have had.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we have two options here: Ignore unhandled errors or have unhandled errors lead to crashes. My first pull request was to document how to handle errors so you don't have crashes and I was asked to instead fix the issue. I don't think there is a third option but I'd be very happy to learn something.

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

Successfully merging this pull request may close these issues.

2 participants