From 73c6a3394bd97a92d71e0d3b664da771cc1e539f Mon Sep 17 00:00:00 2001 From: gaojiangxia <1551959560@qq.com> Date: Tue, 21 Nov 2023 14:04:37 +0800 Subject: [PATCH] a --- chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.py b/chat.py index d88e5a0..006a259 100644 --- a/chat.py +++ b/chat.py @@ -51,7 +51,7 @@ async def echo(websocket): else : # h = [] h = 0; - r = {'type':'history_num','content':h} + r = {'type':'history_num','content':str(h)} message = json.dumps(r,ensure_ascii=False) await websocket.send(message) #历史记录 -- Gitee