-
Notifications
You must be signed in to change notification settings - Fork 371
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
Nested Websocket errors on error returned from the connection #464
Comments
@special-character I think I've been able to recreate this:
Can you confirm this is the behaviour you're seeing? I think this should just be:
Can you confirm that that's what you're expecting? |
@leesio this is what I am seeing and I did expect it to be just one websocket error |
I think something like this should be fine: I can't think of a scenario where the error emitted by the |
Hey @special-character I just released v7.0.0 which includes this fix. Please let me know if this solves your problem. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The error returned from the error callback gets a heavily nested error that is a
WebSocketError
ex:
The error returned:
If the current behavior is a bug, please provide the steps to reproduce and
if possible a minimal demo of the problem via https://jsfiddle.net or similar.
This is hard to debug but a search on the
WebSocketError
shows lots of places where errors are involved. I think some might be thrown and wrapped.https://github.com/pusher/pusher-js/search?q=WebSocketError&unscoped_q=WebSocketError
What is the expected behavior?
Feels like this should be a standard error. I couldn't find a type that matched with this error.
Which versions of Pusher, and which browsers / OS are affected by this issue?
Did this work in previous versions of Pusher? If so, which?
This is specifically happening for
pusher-js/react-native
Thanks for the project!
The text was updated successfully, but these errors were encountered: