Could someone explain the correct reconnection pattern for the Genesys Cloud Notification API? I am using a Node.js worker to subscribe to event streams, but my custom backoff logic keeps triggering rate limits when the connection drops unexpectedly.
My current implementation uses ws with an exponential backoff timer, but I am unsure if I should be checking for specific close codes before retrying. The client just disconnects and reconnects immediately without respecting the server’s state.
Here is the relevant snippet where the error occurs during the retry attempt. I am getting a 429 status on the initial handshake after the reconnect.