It seems that MessageIOClient not closed when a MQTT subscribe client closed. When I start a MQTT subscribe client I receive duplicate messages. With a snippet below in mqttServer.js, it seems to be stopped duplicate message.
server.on('unsubscribed', function(packet, client) {
if (client.messageIOClient) {
client.messageIOClient.close();
}
});
It seems that MessageIOClient not closed when a MQTT subscribe client closed. When I start a MQTT subscribe client I receive duplicate messages. With a snippet below in mqttServer.js, it seems to be stopped duplicate message.