Pārlūkot izejas kodu

auto commit

master
jfinn 2 gadus atpakaļ
vecāks
revīzija
8dceb20878
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      wsps/consumers.py

+ 3
- 1
wsps/consumers.py Parādīt failu

@@ -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("!!!!!!!!!!!!!!!!!!!!?")

Notiek ielāde…
Atcelt
Saglabāt