Andrea Cardaci

Results 103 comments of Andrea Cardaci

In general, you could try to figure out what DevTools does either by looking at the source code of via [inspection](https://github.com/cyrus-and/chrome-remote-interface/wiki/Inspect-the-inspector) and reimplement what you need.

See cyrus-and/chrome-remote-interface#265.

You can ignore it for now, a fix will arrive shortly. Thanks for letting me know.

Too bad the obvious fix (using `PUT`) would break other implementations, e.g., Firefox...

> Will `HEAD` or `PATCH` work? Nope, at this point each implementation might decide to accept/refuse certain methods. So a more general solution, where the method to be used is...

It seems I cannot reproduce the scenario you're describing. For example, if I kill Chrome after a couple of seconds, this script still terminates, printing `bye`: ```js const CDP =...

I kind of see your point, but the script terminates whether the `disconnect` event has been registered or not. If you close Chrome after `1` is printed in the below...

> IMO, using `--remote-debugging-pipe` is simpler since you don't need to establish a TCP connection or implement network error handling, so here is a patch that enables a user to...

Eh... it doesn't sound like a ton of work in theory, in practice (to avoid spaghetti code) that would require a pretty big code refactoring I guess. Also to be...

Eh, sorry no, I know. The best you can do is using callbacks but I doubt it would make any real improvements as the files are always scanned by Emacs.