|
@@ -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
|
|