I am trying to implemented shared topic concept using Nodejs code.
Now I am planning to implement Topic Alias using the Nodejs Code.
I have tried with below code but I didn't get proper out:
const mqtt = require('mqtt')
const clientThree = mqtt.connect('mqtt://192.168.x.xx:1883')
var options={
topicAliasMaximum:1,
};
clientThree.on('connect', () => {
let i = 0
clientThree.publish('test', "hello",options);
})