Does anyone know the best practice for handling WebSocket reconnections to the Genesys Cloud Notification API in a Node.js environment? I am building an ETL pipeline that streams conversation events directly to a Glue job trigger, and I need robust reconnection logic. Currently, I am using the ws library. My code initializes the connection like this: const WebSocket = require(‘ws’); const ws = new WebSocket(‘wss://api.mypurecloud.com/v2/analytics/events’); ws.on(‘open’, () => { console.log(‘Connected’); }); ws.on(‘close’, (code, reason) => { console.log(‘Disconnected:’, code, reason); setTimeout(() => { reconnect(); }, 5000); }); function reconnect() { const newWs = new WebSocket(‘wss://api.mypurecloud.com/v2/analytics/events’); newWs.on(‘open’, () => { console.log(‘Reconnected’); }); } However, I am seeing intermittent 401 Unauthorized errors after reconnection attempts, even though my OAuth token is valid and refreshed via /oauth/token. The initial connection works fine. Is there a specific header or payload I need to send during the reconnection handshake? Also, should I be using the platform SDK for this instead of raw ws calls? I have tried adding the Authorization header in the options object, but it seems to be ignored on reconnect. Any code examples for handling this gracefully would be appreciated. I am in Europe/Paris timezone, so I am seeing these failures during our peak hours.