-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot detect absence of network #102
Comments
@GolDiV I will restate the problem to make sure I understand what you are saying. When creating an instance of the websocket client in the absence of a network connection, you're unable to intercept the error. I've got a test for this scenario. https://github.com/chadxz/awry/blob/master/test/events/ReconnectingWebsocket.spec.js#L66-L96 It simulates an error prior to a connection by making the validation fail when connecting to the server. It sounds like that test isn't an accurate representation of your issue though. Can you verify that I understand your problem correctly? |
I experimented a bit and came to the following conclusion. In your test input parameter (verifyClient) set correctly, but it seemed to me you are testing is not quite the same event. I will try to show it an example:
I have a remote server asterisk so to break the connection I pull out the network cable. |
For each case can you describe what you expected to be the behavior? |
Ideally, I want to listen to errors by one listener such as |
Hi Chad! I think I found the solution. Into file ReconnectingWebSocket.js (master) I add into row 109 next code:
After that listener |
Originally reported in #101
The text was updated successfully, but these errors were encountered: