Skip to content

MQTT Manual Acknowledgement #450

Open
@t-moe

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions