From 53f8ab31eede416394d5180081f6bf789396bbf8 Mon Sep 17 00:00:00 2001 From: Nicode Date: Mon, 30 Jun 2025 07:30:40 +0800 Subject: [PATCH] fix: availability of using xiaozhi-esp32-server as backend --- .../xiaozhi/xiaozhi/services/protocols/websocket_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/xiaozhi/xiaozhi/services/protocols/websocket_protocol.py b/examples/xiaozhi/xiaozhi/services/protocols/websocket_protocol.py index 52d2359..e4546f1 100644 --- a/examples/xiaozhi/xiaozhi/services/protocols/websocket_protocol.py +++ b/examples/xiaozhi/xiaozhi/services/protocols/websocket_protocol.py @@ -201,7 +201,7 @@ class WebsocketProtocol(Protocol): if self.websocket and get_xiaozhi().device_state == DeviceState.IDLE: try: await self.send_text( - json.dumps({"session_id": "", "type": "abort"}) + json.dumps({"session_id": "", "type": "ping"}) ) except Exception: # 发送心跳失败,重新连接