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

Emit connection errors as server sessionError #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pimterry
Copy link

@pimterry pimterry commented Jul 7, 2020

Super tiny PR that fixes #374.

This doesn't expose all errors, there's definitely more that could be done here, but this is an easy useful addition imo.

It doesn't match up that closely to the node API, not sure how important that is to you, but it's broadly similar. The equivalent node sessionError event is emitted with the error and the session, not the socket, the error code etc values are different, and I expect it's not emitted in exactly the same cases.

@franz-josef-kaiser
Copy link

@daviddias Could you take a look at this?

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

Successfully merging this pull request may close these issues.

Connection errors are not exposed
2 participants