-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errorReceived events don't work #344
Comments
It looks like your sample documentation is out of date. I read through the code and this worked: |
Here is what I ended up doing for error handling. Basically I wanted to keep the connection going and re-establish my receiver on disconnect. This was able to survive bringing my active MQ server down and up. Nothing else I tried could survive that and keep working. If there is a better way, please advise. const AMQPClient = require("amqp10").Client; |
I found these examples from your samples:
sender.on('errorReceived', function (tx_err) { console.warn('===> TX ERROR: ', tx_err); });
receiver.on('errorReceived', function (rx_err) { console.warn('===> RX ERROR: ', rx_err); });
But they don't work. If I bring down my activemq server I don't get any errorReceived events.
The text was updated successfully, but these errors were encountered: