Closed oscarguindzberg closed 4 months ago
Maybe related https://github.com/WhiskeySockets/Baileys/issues/884
I don't understand why was the issue closed.
You spammed 7 issues with basically same information. Also this is normal behaviour. You can observe whatsapp web and it will reconnect every now and then also.
I created 6 issues, some look similar to others, but each one is different. Error msg is different or a different exception is thrown, etc. On each issue I included links to other issues that may be related.
About this issue in particular: Does whatsapp web reconnect every now and then because it decides to do so? In this particular case, it seems the server is closing the connection.
Describe the bug I have a server with 15 connected whatsapp users.
WebSockets are closed from time to time. This callback is executed: https://github.com/WhiskeySockets/Baileys/blob/76d2a9d759c31e4b2346fb2f02ec572f4d4c0437/src/Socket/socket.ts#L584 Then baileys generates a
'connection.update'
event whereconnection === 'close'
After the websocket is closed, I do an automatic reconnection and it works fine.
To Reproduce Steps to reproduce the behavior: Don't know how to reproduce, it happens from time to time on a server with 15 connected whatsapp users.
Expected behavior No errors on the log
Environment (please complete the following information):
What do your
connectOptions
look like?Additional context Using baileys v6.7.5