I have enabled websockets on mosquito and everything works fine when webclients are publishers and subscribers but when I try to subscribe from a web client and publish from a normal mosquito client, the publisher gives an error: Connection was lost. Everything is done using websockets protocol. Mosquitto used is Mosquitto 1.4.2 and webclient is http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.javascript.git. What is the cause of this problem and how should it be resolved?. Any help is highly appreciated.
Thanks and regards,
Suman
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to a topic in the Google Groups "MQTT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mqtt/-cHmbbwOkbU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.
I assume you are using a Web client to publish using websockets on port 9001. Is the error in your browser console? Can you share the JavaScript you are using to publish from the web client?
Not sure if it helps, but currently Mosquitto does not support libwebsockets between bridges. That bit me. I changed the secure bridge conf. to use protocol "mqtt" between bridges, but leave the clients setup using secure web sockets.
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/0ff1aea3-5ae6-4c01-b3f8-679e07071379%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/CABAzUqEOiucqcPLwDEZZn%2BgMsok3fbmMPE6-ceqRj2XmyVnx4g%40mail.gmail.com.
listener 9001 protocol websockets
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/CAHVB1Qk%2BY8H3YGgq2gHGPzt9CCv9VSZrP%2BGak5qeYmNm1Fjf7Q%40mail.gmail.com.