I’ve written a Node.js subscriber using the ws library to listen to /api/v2/notifications, but the connection drops intermittently during load testing. I’m currently implementing a retry loop with exponential backoff, yet the server frequently closes the socket with code 1001 before I can re-authenticate. What’s the standard pattern for handling these disconnects without triggering rate limits or losing state? Here is the basic reconnect function I’m using: