Is this a supported scenario? If I disconnect my websocket and then reconnect to the same tab I can then again expand the DOM. Surely I don't need to disconnect and then reconnect to expand the DOM after a DOM.documentUpdated event.
Anyone have any experience doing this?
Thanks,
Tom
No reconnect should be necessary. devtools itself is using the same protocol (and even same ws connection in the remote debugging mode) with no reconnect upon navigation.
You could run chrome with --remote-debugging-port=9222 , start remote debugging and sniff for the traffic going on.
Or you could open devtools on devtools and make it log all protocol messages going on (see the name of the flag you need to flip in InspectorBackend.js in WebKit repo, dumpProtocolMessages or something .
Note that for faster prototyping you could use chrome.debugger extension api as well. When you encounter a problem there it is really easy to share a test case.
Regards
Pavel