Hello all!
Describe the bug
I'm facing a problem when starting a process, connecting some phone numbers through QR code, everything's working fine, I can send messages, receive upsert events.
But after some time (4-5 hours) the socket stops receiving the upsert events. I can still connect/disconnect, but the message upsert events won't come.
To Reproduce
Steps to reproduce the behavior:
- Created some new connection
- Wait for some time (mostly 4-5 hours)
- Message events won't come, though there are active conversations
Expected behavior
The message events shouldn't stop, or if there's any problem with the socket, there should be an error message.
Environment:
- Express.js server running 5-6 socket connections (later we want more)
- My
connectOptions:
const browser = Browsers.appropriate('Desktop');
const socket = makeWASocket({
logger: this.logger, // pino logger with level 'error'
syncFullHistory: false,
shouldSyncHistoryMessage: () => false,
auth: { // custom MySQL auth state
creds: state?.creds,
keys: state?.keys,
},
browser: browser
});
Any help would be welcome!
Hello all!
Describe the bug
I'm facing a problem when starting a process, connecting some phone numbers through QR code, everything's working fine, I can send messages, receive upsert events.
But after some time (4-5 hours) the socket stops receiving the upsert events. I can still connect/disconnect, but the message upsert events won't come.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The message events shouldn't stop, or if there's any problem with the socket, there should be an error message.
Environment:
connectOptions:Any help would be welcome!