瀏覽代碼

auto commit

master
jfinn 2 年之前
父節點
當前提交
81c5ef7f27
共有 1 個檔案被更改,包括 19 行新增0 行删除
  1. 19
    0
      wsps/consumers.py

+ 19
- 0
wsps/consumers.py 查看文件

@@ -45,5 +45,24 @@ class ChatConsumer(
45 45
 		pass
46 46
 
47 47
 
48
+class RoomListConsumer(
49
+	DispConsumer,
50
+	Mixins.DevMixin,
51
+	Mixins.LoneMixinA,
52
+	Mixins.AclTaskMixin,
53
+	Mixins.AconMixin,
54
+	Mixins.LoneMixinB,
55
+	Mixins.DevMroMixin,
56
+	AsyncWebsocketConsumer,
57
+	):
58
+	async def ws_conn0(self):
59
+		print("",end="",flush=True)
60
+		self.accept()
61
+	async def ws_disconn(self, close_code):
62
+		pass
63
+
64
+
65
+
66
+Mixins.RoomListConsumer = RoomListConsumer
48 67
 Mixins.ChatConsumer = ChatConsumer
49 68
 

Loading…
取消
儲存