Greetings,
I've been trying to build mosquitto with websockets enabled on 6.8
release. The web says that all I should have to do is edit config.mk
and change WITH_WEBSOCKETS:=no to WITH_WEBSOCKETS:=yes.
I also added libwebsockets from ports.
I built a patch to do that and then built the port with that patch.
test68# cd /usr/ports/net/mosquitto/patches/
test68# cat patch-config_mk
--- config.mk.orig Wed Nov 25 09:33:17 2020
+++ config.mk Wed Nov 25 09:33:34 2020
@@ -65,7 +65,7 @@
WITH_SRV:=no
# Build with websockets support on the broker.
-WITH_WEBSOCKETS:=no
+WITH_WEBSOCKETS:=yes
# Use elliptic keys in broker
WITH_EC:=yes
However, I still get the following:
test68# /usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
1606323544: Error: Websockets support not available.
1606323544: Error found at /etc/mosquitto/mosquitto.conf:241.
ktracing the command above I don't even see a place where it actually
looks to see if websockets are enabled.
I'm hoping someone has gone down this path before and can share the
secret sauce to enable websockets.
Alternatively, a suggestion for a different implementation of MQTT with
websockets would be fine.
Thanks,
Jeff Ross