If you open an inspector session for a safari webpage (or for a web view in an app) and you switch apps on the device, the inspect session may disappear from the AVAILABLE DEVICES sidebar and the session may close/disconnect.
Rather than "unmounting" the DevTools when a connection is disconnected, display a message saying waiting to reconnect and then automatically reconnect after detecting the web view connection again.
The motivation is to be able to catch page loads immediately once an app's web view is reconnected.
If you open an inspector session for a safari webpage (or for a web view in an app) and you switch apps on the device, the inspect session may disappear from the AVAILABLE DEVICES sidebar and the session may close/disconnect.
Rather than "unmounting" the DevTools when a connection is disconnected, display a message saying waiting to reconnect and then automatically reconnect after detecting the web view connection again.
The motivation is to be able to catch page loads immediately once an app's web view is reconnected.