Just noticed that my Node.js script handling Genesys Notification WebSocket events drops subscriptions after a gateway timeout. I need robust reconnection logic that preserves the subscription state.
- Connect to wss://api.genesys.cloud/v2/analytics/events/notifications
- Subscribe to routing.queue.events
- Wait for 408 timeout
- Attempt reconnect with existing auth token
The subscriptions vanish on reconnect. How do I persist them without re-registering?