chrome-dev-tools-runtime icon indicating copy to clipboard operation
chrome-dev-tools-runtime copied to clipboard

How to connect?

Open ygoe opened this issue 7 years ago • 2 comments

I can generate a runtime and use it in a .NET Core 2.1 application. But where should I connect? Obviously, ws://... is not the URL to go to. I've tried with ws://localhost:9223 but whatever I try to do, I get an HTTP 404 exception. Please advice. I have never used Chrome DevTools before but now need it to have chrome print a web page to a PDF file for another application.

ygoe avatar Oct 09 '18 08:10 ygoe

Turns out I first have to fetch JSON documents from http://localhost:9223/json and http://localhost:9223/json/version to get webSocketDebuggerUrl values I can connect to. Very confusing. Had to put together numerous web search fragments to find this out. Shouldn't this be in the very first example?

ygoe avatar Oct 09 '18 12:10 ygoe

Hi! The example here includes this, but I'll make the documentation a bit better.

Oceanswave avatar Nov 09 '18 19:11 Oceanswave