new(all): Custom Domain support per bot.
This commit is contained in:
parent
c6de0f0fa1
commit
ad5744aa7d
1 changed files with 3 additions and 4 deletions
|
@ -156,9 +156,6 @@ export class WhatsappDirectLine extends GBService {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
await client.initialize();
|
|
||||||
this.browserWSEndpoint = client.pupBrowser.wsEndpoint();
|
|
||||||
|
|
||||||
client.on('message', (async message => {
|
client.on('message', (async message => {
|
||||||
await this.WhatsAppCallback(message, null);
|
await this.WhatsAppCallback(message, null);
|
||||||
}).bind(this));
|
}).bind(this));
|
||||||
|
@ -197,6 +194,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
}).bind(this));
|
}).bind(this));
|
||||||
|
|
||||||
client.on('authenticated', () => {
|
client.on('authenticated', () => {
|
||||||
|
this.browserWSEndpoint = client.pupBrowser.wsEndpoint();
|
||||||
GBLog.info(`WhatsApp QR Code authenticated for ${this.botId}.`);
|
GBLog.info(`WhatsApp QR Code authenticated for ${this.botId}.`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -215,6 +213,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
|
|
||||||
|
|
||||||
await (createClient.bind(this))(this.browserWSEndpoint);
|
await (createClient.bind(this))(this.browserWSEndpoint);
|
||||||
|
client.initialize();
|
||||||
|
|
||||||
setUrl = false;
|
setUrl = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue