Open lht1 opened 4 years ago
Thanks for the detailed description. Could I suggest you use version 1.6.7? Libwebsockets 3.2.0 introduced a breaking changing in behaviour that is worked around in 1.6.7.
Thanks for your typeset for my comment. Sorry, I can't find 1.6.7 in Mosquitto or Libwebsockets. I understand you mean I should use some older version of libwebsockets? Anyway, I think the comparision between pointers is risky. What do you think?
The source is here: https://mosquitto.org/files/source/mosquitto-1.6.7.tar.gz I don't know what system you are using, so can't comment on binaries.
I don't see why the pointer comparison would be problematic. The pointer remains valid for the lifetime of the broker. If you think it could be, please explain.
Same issue exist when using docker on CoreOS 2303.3.0 .
persistence true persistence_location /mosquitto/data/ log_dest file /mosquitto/log/mosquitto.log connection_messages true log_timestamp true allow_anonymous true listener 1883 listener 9001 protocol websockets socket_domain ipv4
Followed the instructions on https://hub.docker.com/_/eclipse-mosquitto?tab=description using latest & version 1.6.7, 1.6.8
tcp dump shows 1575827145: Client
The procedure of compile and running follows:
mosquitto:
paho.mqtt.javascript
javascript in html
mosquitto configurations:
run mqtt server:
Get following error in the Browser:
When I modify following part code in src/websockets.c, it succeeded: