I want to use a remote headless browser service (this one) and in the docs they use puppeteer.connect()
instead of puppeteer.launch()
this the code to launch the puppeteer cluster:
const cluster = await Cluster.launch({
concurrency: Cluster.CONCURRENCY_PAGE,
maxConcurrency: 10,
monitor: true,
options: {
timeout: 0,
}
});
how can I use puppeteer.connect() in puppeteer-cluster?