Skip to content

Commit

Permalink
feat: Added onLoadingScreen messages
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Aug 8, 2022
1 parent 110dcd3 commit dcce5fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/createSessionUtil.js
Expand Up @@ -54,6 +54,9 @@ export default class CreateSessionUtil {
catchQR: (base64Qr, asciiQR, attempt, urlCode) => {
this.exportQR(req, base64Qr, urlCode, client, res);
},
onLoadingScreen: (percent, message) => {
req.logger.info(`[${session}] ${percent}% - ${message}`);
},
statusFind: (statusFind) => {
try {
eventEmitter.emit(`status-${client.session}`, client, statusFind);
Expand Down

0 comments on commit dcce5fc

Please sign in to comment.