fix: clear stale routingInfo on restart to prevent slow/unstable connections
fix: clear stale routingInfo on restart to prevent slow/unstable connections
This commit is contained in:
@@ -87,6 +87,12 @@ export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
|
||||
enableCTWARecovery: true,
|
||||
// Enable interactive messages (buttons, lists, templates, carousel)
|
||||
enableInteractiveMessages: true,
|
||||
// Clear stale routingInfo on every socket creation so the WhatsApp load balancer
|
||||
// assigns a fresh, healthy edge server after any restart (pm2, server reboot, deploy).
|
||||
// The server always sends a new routingInfo during the connection handshake, so the
|
||||
// old value is never needed. Keeping it can cause slow or unstable sessions when the
|
||||
// previous edge server is overloaded or has stale state.
|
||||
clearRoutingInfoOnStart: true,
|
||||
options: {},
|
||||
appStateMacVerification: {
|
||||
patch: false,
|
||||
|
||||
Reference in New Issue
Block a user