fix:mqtt配置中的websocket连接

This commit is contained in:
hrz
2025-11-11 18:52:41 +08:00
parent cbb74170ea
commit bbca561dd0
+3 -3
View File
@@ -11,12 +11,12 @@
1、如果你是源码部署,你的`mqtt-websocket`地址是: 1、如果你是源码部署,你的`mqtt-websocket`地址是:
``` ```
ws://127.0.0.1:8000/xiaozhi/v1?from=mqtt_gateway ws://127.0.0.1:8000/xiaozhi/v1/?from=mqtt_gateway
``` ```
2、如果你是docker部署,你的`mqtt-websocket`地址是 2、如果你是docker部署,你的`mqtt-websocket`地址是
``` ```
ws://你宿主机局域网IP:8000/xiaozhi/v1?from=mqtt_gateway ws://你宿主机局域网IP:8000/xiaozhi/v1/?from=mqtt_gateway
``` ```
## 重要提示 ## 重要提示
@@ -53,7 +53,7 @@ cp config/mqtt.json.example config/mqtt.json
{ {
"production": { "production": {
"chat_servers": [ "chat_servers": [
"ws://127.0.0.1:8000/xiaozhi/v1?from=mqtt_gateway" "ws://127.0.0.1:8000/xiaozhi/v1/?from=mqtt_gateway"
] ]
}, },
"debug": false, "debug": false,