feat: 增加async def ticket
This commit is contained in:
parent
efa6651748
commit
df6fbf500e
|
@ -72,3 +72,6 @@ class MyConsumer(AsyncWebsocketConsumer):
|
||||||
|
|
||||||
async def event(self, content):
|
async def event(self, content):
|
||||||
await self.send(json.dumps(content, ensure_ascii=False))
|
await self.send(json.dumps(content, ensure_ascii=False))
|
||||||
|
|
||||||
|
async def ticket(self, content):
|
||||||
|
await self.send(json.dumps(content, ensure_ascii=False))
|
||||||
|
|
Loading…
Reference in New Issue