Browse Source

auto commit

master
jfinn 3 years ago
parent
commit
aa88d08d77
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      wsps/consumers.py

+ 6
- 1
wsps/consumers.py View File

@@ -41,13 +41,18 @@ class ChatConsumer(
41 41
 	):
42 42
 	# def connect(self):
43 43
 	async def ws_conn0(self):
44
-		
44
+
45 45
 		print("ChatConsumer:ws_conn0")
46 46
 		# p("!!!!!!!!!!!!!!!!!!!!?")
47 47
 		print("",end="",flush=True)
48 48
 		# time.sleep(1.5)
49 49
 
50 50
 		# p("!!!!!!!!!!!!!!!!!!!!")
51
+
52
+		await self.send(text_data=json.dumps({
53
+			'wsconn': {"abc.":12}
54
+		}))
55
+
51 56
 		# print("",end="",flush=True)
52 57
 		self.accept()
53 58
 

Loading…
Cancel
Save