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

Catch exceptions thrown by WebSocket constructor #980

Closed
wants to merge 2 commits into from
Closed

Catch exceptions thrown by WebSocket constructor #980

wants to merge 2 commits into from

Conversation

matonga
Copy link

@matonga matonga commented Jul 6, 2016

My browser (Google Chrome 51.0.2704.84 (64-bit) Linux) throws net::ERR_NAME_RESOLUTION_FAILED when calling new WebSocket with no Internet connection available. The uncaught exception breaks socket.io's reconnection attempts. This patch solves the problem.

matonga added 2 commits July 6, 2016 12:47
My browser (Google Chrome 51.0.2704.84 (64-bit) Linux) throws net::ERR_NAME_RESOLUTION_FAILED when calling new WebSocket with no Internet connection available. The uncaught exception breaks socket.io's reconnection attempts. This patch solves the problem.
@matonga
Copy link
Author

matonga commented Jul 12, 2016

I see Travis CI failing for iphone/6.1 and iphone/latest. Should I fork from a previous socket.io-client version, add my changes and try again?

@matonga matonga closed this Aug 3, 2016
@matonga matonga reopened this Aug 3, 2016
@darrachequesne
Copy link
Member

@matonga thanks for the PR! The fix has been applied here: socketio/engine.io-client#475

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