Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Loading Screen callback function with percent and message #1218

Merged
merged 2 commits into from Jul 28, 2022

Conversation

tonbotfy
Copy link
Contributor

It will help a lot of people who need this whatsapp screen status.

When the screen is loading, the callback function 'onLoadingScreen' is called with two parameters:
percent: number
message: string

loading-screen

To test (it takes a while): npm install github:tonbotfy/wppconnect

wppconnect
.create({
session: 'teste',
onLoadingScreen: (percent, message) => {
console.log('LOADING_SCREEN', percent, message);
},
})

@edgardmessias
Copy link
Contributor

@tonbotfy , could you fix the lint before the merge?

@tonbotfy
Copy link
Contributor Author

@edgardmessias done, my friend! 👍🏼

@edgardmessias edgardmessias merged commit 1a11117 into wppconnect-team:master Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants