Skip to content

Commit

Permalink
feat: Added client.getPID function (close #1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 24, 2023
1 parent b8e13e2 commit 4912734
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/whatsapp.ts
Expand Up @@ -161,6 +161,16 @@ export class Whatsapp extends BusinessLayer {
return true;
}

/**
* Return PID process
* @internal
*/
public getPID() {
const browser = this.page.browser();
const process = browser.process();
return process.pid;
}

/**
* Get message by id
* @param messageId string
Expand Down

0 comments on commit 4912734

Please sign in to comment.