@ryuhan/baileys 1.0.7 → 1.0.8

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.
@@ -393,6 +393,13 @@ const makeSocket = (config) => {
393
393
  name: '~'
394
394
  };
395
395
  ev.emit('creds.update', authState.creds);
396
+
397
+ // Wait for WebSocket to be open before sending pairing request
398
+ if (!ws.isOpen) {
399
+ logger.info('WebSocket not open, waiting for connection...');
400
+ await waitForSocketOpen();
401
+ }
402
+
396
403
  await sendNode({
397
404
  tag: 'iq',
398
405
  attrs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuhan/baileys",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Rimuru Baileys",
5
5
  "keywords": [
6
6
  "baileys",