|
@@ -16,7 +16,8 @@ class DispConsumer():
|
16
|
16
|
# if 'message' in text_data_json:
|
17
|
17
|
|
18
|
18
|
if "key" in msg_data:
|
19
|
|
- key = "_" + msg_data["key"]
|
|
19
|
+ key = "jm_" + msg_data["key"]
|
|
20
|
+ # key = "j_" + msg_data["key"]
|
20
|
21
|
mthd = getattr(self,key,None)
|
21
|
22
|
if mthd:
|
22
|
23
|
await mthd(msg_data)
|
|
@@ -38,6 +39,7 @@ class ChatConsumer(
|
38
|
39
|
AsyncWebsocketConsumer,
|
39
|
40
|
):
|
40
|
41
|
# def connect(self):
|
|
42
|
+ async def jc_conn0(self):
|
41
|
43
|
async def ws_conn0(self):
|
42
|
44
|
print("ChatConsumer:ws_conn0")
|
43
|
45
|
# p("!!!!!!!!!!!!!!!!!!!!?")
|