paho.mqtt.javascript
paho.mqtt.javascript copied to clipboard
topic name with '/' will be replaced with '.' (for activemq)
js code:
client.subscribe("fnd_wlw_device_notify_to_customer/p2p/WIFIM_C89346F7A075");
the connection info you can see in activemq

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 |
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.