w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
363 stars 40 forks source link

What happens if a socket prematurely dies? #25

Open foolip opened 4 years ago

foolip commented 4 years ago

This was asked by @AutomatedTester in https://github.com/w3c/webdriver-bidi/pull/24#discussion_r434583966.

The minimum we should do is to define clearly what happens to the remote end if the connection is reset. Beyond that, it would be good if it's possible for a client to reconnect, and the most likely way that wouldn't be possible is if we decided (for simplicity elsewhere) that there could only be one websocket connection at all for the duration of a session. In other words, this issue is likely slightly entangled with what to do if a client tries to set up two parallel connection.

jgraham commented 4 years ago

So I see two key issues here:

So, unless there's some clever solution here, I think we have a few choices: