paho.mqtt.javascript icon indicating copy to clipboard operation
paho.mqtt.javascript copied to clipboard

topic name with '/' will be replaced with '.' (for activemq)

Open 1767549189 opened this issue 4 years ago • 2 comments

js code:

client.subscribe("fnd_wlw_device_notify_to_customer/p2p/WIFIM_C89346F7A075");

the connection info you can see in activemq

image

1767549189 avatar Feb 24 '21 02:02 1767549189

same issue

browser side

 client.subscribe("mqtt/demo2"); 

PC side

ch.Publish("amq.topic","mqtt/demo2",...)

different topic

To Routing key Arguments  
browser.mqtt.client mqtt.demo2    
pc.mqtt.client mqtt/demo2    

hippo-io avatar Jun 28 '22 08:06 hippo-io

This is the same with RabbitMQ. They use the "." as a separator instead of the "/", to be more in line with their AMQP part.

It's not an issue with Paho.

Webbeh avatar Feb 07 '23 12:02 Webbeh