mqtt(mosquitto)配置protocol websockets必须配置socket_domain
# mqtt 协议配置,分为IP4和IP6两种,当前可以只配置启用一种
listener 1883 0.0.0.0
socket_domain ipv4
protocol mqtt
# webscoket 协议配置,分为IP4和IP6两种,当前可以只配置启用一种
listener 9001 0.0.0.0
protocol websockets
socket_domain ipv4
本文参考:https://www.cnblogs.com/ruyu/p/16297913.html
标签:domain,protocol,0.0,配置,mqtt,不上,MQTT,websockets From: https://www.cnblogs.com/luozili/p/16657405.html