I have set up mosquitto with NodeJs and EMQX with the NodeJs in 2 different applications. I want to create a bridge between both my MQTT clients and send and receive values from both ends.
Tried creating a bridge using WebSocket Options in my MQTT npm package.
var client = mqtt.connect('mqtt://test.mosquitto.org', {
clientId: 'mqttjs_6fa3a7ee3d',
wsOptions: {
host: '100.84.81.28',
port: 8083,
path: '/mqtt'
}
});
My EMQ connection with NodeJs.
var client = mqtt.connect('ws://100.84.81.28:8083/mqtt');