Skip to content

feat: added function to re-use an existing WhatsApp page/tab if already exists.#201775

Open
emwadde wants to merge 1 commit into
wwebjs:mainfrom
emwadde:main
Open

feat: added function to re-use an existing WhatsApp page/tab if already exists.#201775
emwadde wants to merge 1 commit into
wwebjs:mainfrom
emwadde:main

Conversation

@emwadde

@emwadde emwadde commented May 31, 2026

Copy link
Copy Markdown

…en connected to an existing browser session with DevTool protocol

feat: re-used existing WhatsApp tab/page when connected to external browser session

Description

Adds a function to check if a page already existing when connected to an external browser session
Modified the initialize function to re-use the existing page when connected to external browser session. If no existing page is found, then a new page is created

Testing Summary

Test Details

Environment

  • Machine OS: Ubuntu 26.04
  • Phone OS:
  • Library Version: 1.34.7
  • WhatsApp Web Version: 2.3000.1040506012
  • Browser Type and Version: Chrome/148
  • Node Version: v24.15.0

Type of Change

  • Dependency change (package changes such as removals, upgrades, or additions)
  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-code change (documentation, README, etc.)

Checklist

  • My code follows the style guidelines of this project.
  • All new and existing tests pass (npm test).
  • Typings (e.g. index.d.ts) have been updated if necessary.
  • Usage examples (e.g. example.js) / documentation have been updated if applicable.

…en connected to an existing browser session with DevTool protocol

feat: re-used existing WhatsApp tab/page when connected to external browser session
@github-actions github-actions Bot added the api changes API modifications label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant