Skip to content

Add ability to list sessions and connect to an existing sessions

Compare
Choose a tag to compare
@meddulla meddulla released this 14 Mar 17:12
· 46 commits to main since this release
7c55764

Adds new methods:

  • puppeteer.sessions(): lists current open sessions/browsers. Sessions with a connectionId already have a devtools connection from a worker
  • puppeteer.connect(endpoint, sessionId): connects to an open session/browser
  • puppeteer.history(): lists recent sessions, open and closed, useful to get a sense of what's happening
  • puppeteer.limits(): return current limits (eg. can the user open a new browser now?)