You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the on 'disconnect' event was only triggered when the connection dies instead of every 5 seconds (each time the connection state is checked)
The text was updated successfully, but these errors were encountered:
@jwalton I find this change problematic. How are you supposed to track how many times you tried to connect now? I was relying on this repeating event with implementing the max retries approach.
Now I think I could only do that by implementing my own interval and using isConnected method, with resetting the timer on connect event (similarly to resetting retry count).
Still, it is timer over lib's timer which I think would be less accurate than the event which fired exactly when amqlib connect call rejects or connection was closed.
It would be nice if the on 'disconnect' event was only triggered when the connection dies instead of every 5 seconds (each time the connection state is checked)
The text was updated successfully, but these errors were encountered: