@wabot-dev/framework 0.4.0-beta.7 → 0.4.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,11 +31,11 @@ let WhatsAppReceiverByWabotProxy = class WhatsAppReceiverByWabotProxy extends Wh
|
|
|
31
31
|
else if (!response ||
|
|
32
32
|
typeof response !== 'object' ||
|
|
33
33
|
!Array.isArray(response.from) ||
|
|
34
|
-
|
|
34
|
+
typeof response.to !== 'string') {
|
|
35
35
|
this.loger.error('unknown response');
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
this.loger.trace(`succes add whats-app proxy listener for messages from [${response.from.join(',')}] to
|
|
38
|
+
this.loger.trace(`succes add whats-app proxy listener for messages from [${response.from.join(',')}] to ${response.to}`);
|
|
39
39
|
socket.on(WHATSAPP_MESSAGE_EVENT, (data, callback) => {
|
|
40
40
|
if (data.to !== request.to) {
|
|
41
41
|
throw new Error(`expecting message to '${request.to}' but received to='${data.to}'`);
|