We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looking at https://nodejs.org/api/http.html#http_event_upgrade and https://nodejs.org/api/http.html#http_event_upgrade_1 it's unclear whether I have to listen to both res.on('error', ...) and socket.on('error', ...).
res.on('error', ...)
socket.on('error', ...)
Is there any overlap between them? i.e. can an error be emitted to both, are there errors that are not emitted by both? A little bit of set theory.
The text was updated successfully, but these errors were encountered:
The tcp socket is freed when the 'upgrade' event is emitted. Errors are only emitted to the socket instance.
'upgrade'
Sorry, something went wrong.
@ronag is your question answered? Can this be closed?
No branches or pull requests
Looking at https://nodejs.org/api/http.html#http_event_upgrade and https://nodejs.org/api/http.html#http_event_upgrade_1 it's unclear whether I have to listen to both
res.on('error', ...)
andsocket.on('error', ...)
.Is there any overlap between them? i.e. can an error be emitted to both, are there errors that are not emitted by both? A little bit of set theory.
The text was updated successfully, but these errors were encountered: