eclipse / paho.mqtt.javascript

paho.mqtt.javascript
Other
1.15k stars 467 forks source link

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

Open 1767549189 opened 3 years ago

1767549189 commented 3 years ago

js code:

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

the connection info you can see in activemq

image

hippo-io commented 2 years ago

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    
Webbeh commented 1 year ago

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.