feat: [Updated] Loading screen listener with percent and message (#1563)
* last update * eslint fix * headless fix * Update index.d.ts Co-authored-by: stefanfuchs <stefan1234@gmail.com> * Update index.d.ts - Add 'LOADING_SCREEN' type to Enum Co-authored-by: stefanfuchs <stefan1234@gmail.com> Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
parent
6e047cb9be
commit
c5c705a553
4 changed files with 55 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ const client = new Client({
|
|||
|
||||
client.initialize();
|
||||
|
||||
client.on('loading_screen', (percent, message) => {
|
||||
console.log('LOADING SCREEN', percent, message);
|
||||
});
|
||||
|
||||
client.on('qr', (qr) => {
|
||||
// NOTE: This event will not be fired if a session is specified.
|
||||
console.log('QR RECEIVED', qr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue