Skip to content

Commit

Permalink
fix: socket config
Browse files Browse the repository at this point in the history
  • Loading branch information
laxeder committed Jan 3, 2024
1 parent d64834b commit 9edda5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wa/WhatsAppBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class WhatsAppBot extends BotEvents implements IBot {
this.config = {
printQRInTerminal: true,
logger: this.logger,
qrTimeout: 60000,
defaultQueryTimeoutMs: 10000,
retryRequestDelayMs: 300,
maxMsgRetryCount: 10,
Expand Down Expand Up @@ -837,8 +838,8 @@ export default class WhatsAppBot extends BotEvents implements IBot {
* @param version Versão do navegador
*/
public static Browser(plataform?: string, browser?: string, version?: string): [string, string, string] {
const browserAppropriated = Browsers.appropriate(browser);

const browserAppropriated = Browsers.appropriate(browser || "Rompot");
return [plataform || browserAppropriated[0], browser || browserAppropriated[1], version || browserAppropriated[2]];
}
}

0 comments on commit 9edda5b

Please sign in to comment.