Cloudflare DevelopersCD
Cloudflare Developers8mo ago
1 reply
Suman!

From wrangler: 4.16.0 onwards, @cloudflare/puppeteer .connect API does not work on a worker

Error occurs on the line -
this.browser = await puppeteer.connect({ browserWSEndpoint: wsEndpoint });

[ERROR] Error: ws does not work in the browser. Browser clients must use the native WebSocket object

Any workaround?
Was this page helpful?