mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
Add the option to use "browserWSEndpoint" (#727)
* Update Client.js * Update package.json * Update package.json * 🚨🔥 Fixed ESLint and removed old code. * Update README.md * Update README.md * Update Client.js * chore(deps): bump sharp from 0.26.3 to 0.28.3 Bumps [sharp](https://github.com/lovell/sharp) from 0.26.3 to 0.28.3. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md) - [Commits](https://github.com/lovell/sharp/compare/v0.26.3...v0.28.3) --- updated-dependencies: - dependency-name: sharp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update package.json * Update README.md * Update example.js * Update README.md Co-authored-by: Rajeh Taher <52720753+PurpShell@users.noreply.github.com> Co-authored-by: Rajeh Taher <rajeh@reforward.tk> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aliyss Snow <33941859+Aliyss@users.noreply.github.com>
This commit is contained in:
@@ -11,6 +11,13 @@ const client = new Client({ puppeteer: { headless: false }, session: sessionCfg
|
||||
// You can use an existing session and avoid scanning a QR code by adding a "session" object to the client options.
|
||||
// This object must include WABrowserId, WASecretBundle, WAToken1 and WAToken2.
|
||||
|
||||
// You also could connect to an existing instance of a browser
|
||||
// {
|
||||
// puppeteer: {
|
||||
// browserWSEndpoint: `ws://localhost:3000`
|
||||
// }
|
||||
// }
|
||||
|
||||
client.initialize();
|
||||
|
||||
client.on('qr', (qr) => {
|
||||
|
||||
Reference in New Issue
Block a user