I am working on a communication module in which server sent data to mqtt and another client module recieves the message from mqtt. Here I need an acknowledgement from mqtt nodejs client after recieving a message so that i can delete the message from server queue.
I am using nodejs mqtt client package(https://www.npmjs.com/package/mqtt#publish). Is there a default acknowledgement function for mqtt package.
client.handleMessage = (packet: any, callback) => {
console.log(packet);
};
In the above code inside handle message is there a callback function to return a default acknowledgement to server.