From df6fbf500e6e7975e1f4007cef11dfe78e7740bf Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 1 Sep 2023 09:39:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0async=20def=20ticket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ws/consumers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ws/consumers.py b/apps/ws/consumers.py index 738a7b26..cc34f5fd 100644 --- a/apps/ws/consumers.py +++ b/apps/ws/consumers.py @@ -72,3 +72,6 @@ class MyConsumer(AsyncWebsocketConsumer): async def event(self, content): await self.send(json.dumps(content, ensure_ascii=False)) + + async def ticket(self, content): + await self.send(json.dumps(content, ensure_ascii=False))