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.
@@ -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: 20000,
50
+ connectTimeoutMs: 60000,
51
51
  keepAliveIntervalMs: 30000,
52
52
  logger: logger.child({ class: 'baileys' }),
53
53
  emitOwnEvents: true,
54
- defaultQueryTimeoutMs: 60000,
54
+ defaultQueryTimeoutMs: 90000,
55
55
  customUploadHosts: [],
56
56
  retryRequestDelayMs: 250,
57
57
  maxMsgRetryCount: 5,
@@ -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
  });
@@ -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 + 5000) {
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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "violetics",
3
3
  "type": "module",
4
- "version": "7.0.9-alpha",
4
+ "version": "7.0.11-alpha",
5
5
  "description": "A WebSockets library for interacting with WhatsApp Web",
6
6
  "keywords": [
7
7
  "whatsapp",