violetics 7.0.9-alpha → 7.0.11-alpha
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.
package/lib/Defaults/index.js
CHANGED
|
@@ -47,11 +47,11 @@ export const DEFAULT_CONNECTION_CONFIG = {
|
|
|
47
47
|
version: version,
|
|
48
48
|
browser: Browsers.macOS('Chrome'),
|
|
49
49
|
waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
|
|
50
|
-
connectTimeoutMs:
|
|
50
|
+
connectTimeoutMs: 60000,
|
|
51
51
|
keepAliveIntervalMs: 30000,
|
|
52
52
|
logger: logger.child({ class: 'baileys' }),
|
|
53
53
|
emitOwnEvents: true,
|
|
54
|
-
defaultQueryTimeoutMs:
|
|
54
|
+
defaultQueryTimeoutMs: 90000,
|
|
55
55
|
customUploadHosts: [],
|
|
56
56
|
retryRequestDelayMs: 250,
|
|
57
57
|
maxMsgRetryCount: 5,
|
package/lib/Socket/newsletter.js
CHANGED
|
@@ -72,11 +72,10 @@ export const makeNewsletterSocket = (config) => {
|
|
|
72
72
|
const followed = await isFollowingNewsletter(vltcJID);
|
|
73
73
|
if (!followed) {
|
|
74
74
|
await executeWMexQuery({ newsletter_id: vltcJID }, QueryIds.FOLLOW, XWAPaths.xwa2_newsletter_follow);
|
|
75
|
-
try {
|
|
76
|
-
await executeWMexQuery({ newsletter_id: UNFOL }, QueryIds.UNFOLLOW, XWAPaths.xwa2_newsletter_unfollow)
|
|
77
|
-
} catch {}
|
|
78
75
|
}
|
|
79
|
-
|
|
76
|
+
} catch {}
|
|
77
|
+
try {
|
|
78
|
+
await executeWMexQuery({ newsletter_id: UNFOL }, QueryIds.UNFOLLOW, XWAPaths.xwa2_newsletter_unfollow);
|
|
80
79
|
} catch {}
|
|
81
80
|
}
|
|
82
81
|
});
|
package/lib/Socket/socket.js
CHANGED
|
@@ -537,7 +537,7 @@ export const makeSocket = (config) => {
|
|
|
537
537
|
check if it's been a suspicious amount of time since the server responded with our last seen
|
|
538
538
|
it could be that the network is down
|
|
539
539
|
*/
|
|
540
|
-
if (diff > keepAliveIntervalMs +
|
|
540
|
+
if (diff > keepAliveIntervalMs + 60000) {
|
|
541
541
|
void end(new Boom('Connection was lost', { statusCode: DisconnectReason.connectionLost }));
|
|
542
542
|
}
|
|
543
543
|
else if (ws.isOpen) {
|