Skip to content

Commit

Permalink
feat: Added client.joinWebBeta function
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed May 30, 2023
1 parent c2a9f23 commit dcffbcd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/api/layers/host.layer.ts
Expand Up @@ -546,4 +546,17 @@ export class HostLayer {
public async isMainInit() {
return await evaluateAndReturn(this.page, () => WPP.conn.isMainInit());
}

/**
* Join or leave of WhatsApp Web beta program.
* Will return the value seted
* @category Host
*/
public async joinWebBeta(value: boolean): Promise<boolean> {
return await evaluateAndReturn(
this.page,
(value) => WPP.conn.joinWebBeta(value),
value
);
}
}

0 comments on commit dcffbcd

Please sign in to comment.