【发布时间】:2015-08-03 17:05:48
【问题描述】:
我正在尝试利用 Mosquittos 最近的更新来支持代理中的 websocket。我正在运行 Mosquitto v1.4.2,并且在 mosquitto 配置文件 (mosquitto.conf) 中添加了以下几行:
listener 10001 127.0.0.1
protocol websockets
listener 1883
protocol mqtt
当我尝试使用新配置启动代理时,我得到以下信息:
$ mosquitto -c /etc/mosquitto/mosquitto.conf
Error: Websockets support not available.
Error found at /etc/mosquitto/mosquitto.conf:16.
Error: Unable to open configuration file.
我假设 Mosquitto 的 1.4 及更高版本现在具有 websocket 支持(不必像 v1.4 之前那样从源代码构建来启用 websocket 支持)所以我想知道我是什么失踪。任何有关解决问题的方向的帮助表示赞赏。
编辑:忘了说我正在运行 CentOS6
【问题讨论】:
标签: websocket mqtt iot broker mosquitto