How to Integrate VMLogin with Puppeteer?

1. Using the Startup API :

http://127.0.0.1:35000/api/v1/profile/start?skiplock=true&profileId=xxxxxxxxxxxxxxxxxxxxxxxxxxx

The startup API will return :

{"status":"OK","value":"http://127.0.0.1:18500"}




2. Access with the IP and port returned in step 1 :

http://127.0.0.1:18500/json/version

Returns a JSON string:

{
   "Browser": "Chrome/102.0.5005.63",
   "Protocol-Version": "1.3",
   "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
   "V8-Version": "10.2.154.4",
   "WebKit-Version": "537.36 (@a45dd701fe466f94d3b0e13d1e51227b77b2b9ef)",
   "webSocketDebuggerUrl": "ws://127.0.0.1:18500/devtools/browser/15ed04d8-c64c-46a3-8b9a-f0f1dc27f586"
}


3. The webSocketDebuggerUrl returned in step 2 is the puppeteer connection browser websocks protocol address.