Open
Description
Describe the issue
When looking at the api doc of mqtt5.Mqtt5Client::on('messageReceived',...)
and mqtt.MqttClientConnection::subscribe
its not clear to me how errors in the callback are handled. Is the message acknowledged anyways, even if an error occurred during processing?
Lets say I temporarily cannot process the data in my client. Should I throw an error from my message callback?
E.g. I would expect that if I throw an error in my callback, that the callback is invoked again, with the same message (at least if using QoS=1)
Links
https://aws.github.io/aws-iot-device-sdk-js-v2/node/classes/mqtt5.Mqtt5Client.html#MESSAGE_RECEIVED
https://aws.github.io/aws-iot-device-sdk-js-v2/node/classes/mqtt.MqttClientConnection.html#subscribe
Activity