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

How to get error code #55

Closed
dssoma opened this issue Aug 29, 2019 · 1 comment
Closed

How to get error code #55

dssoma opened this issue Aug 29, 2019 · 1 comment
Labels

Comments

@dssoma
Copy link

dssoma commented Aug 29, 2019

How to get error code while getting the error from the socket connection in onerror()?

@lukeed
Copy link
Owner

lukeed commented Sep 2, 2019

Hey, sorry for the delay – I was traveling~

The Sockette event listeners directly receive the native Events and Errors arguments. You should check ev.code – if anything is there at all.

You may want an additional listener on onclose too, since a code (numerical) will always exist there.

Hope that helps!

@lukeed lukeed closed this as completed Sep 2, 2019
@lukeed lukeed added the question label Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants