-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor how timeouts & exceptions are handled on websocket
Does a few things: * Removes (and removes use of) the `->canDevToolsConnectionBeEstablished` method. This was permanently returning false due to a code error (it's calling the wrong URL) and realistically if the socket has timed out but not EOF it's virtually certain it'll still be open. * Allows waitFor to take a timeout, if provided then it will enforce that regardless of whether the socket is healthy (possibly sending packets we don't care about) or failing (timing out the socket because it has nothing to say). * Refactors waitForLoad to just keep retrying & waiting with the new timeout implementation. * Gets rid of us throwing ConnectionException at all, the data and message formats are too tied to the websocket. Throw a sensible DriverException.
- Loading branch information
Showing
6 changed files
with
67 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.