cloudamqp / amqp-client.js

AMQP 0-9-1 TypeScript client both for Node.js and browsers (using WebSocket)
https://cloudamqp.github.io/amqp-client.js/
Apache License 2.0
196 stars 19 forks source link

Randomly getting amqp-client connection closed Socket closed after 48+ hours of connection establishment #100

Open prometheus-admin opened 8 months ago

prometheus-admin commented 8 months ago

I am randomly getting this amqp-client connection closed Socket closed This socket has been ended by the other party after 2+ days of deployment every time. Is there any way to deal with it? Can't find events on connection to re-init it when closed. Can anyone suggest a way to deal with this?

baelter commented 8 months ago

Catch the exception and set up the connection again like the example on the readme?