Browse Source

auto commit

master
jfinn 2 years ago
parent
commit
1bdad1f495
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      wsps/consumers.py

+ 4
- 2
wsps/consumers.py View File

48
 		# time.sleep(1.5)
48
 		# time.sleep(1.5)
49
 
49
 
50
 		# p("!!!!!!!!!!!!!!!!!!!!")
50
 		# p("!!!!!!!!!!!!!!!!!!!!")
51
-
51
+		r'''
52
 		await self.send(text_data=json.dumps({
52
 		await self.send(text_data=json.dumps({
53
 			'wsconn': {"abc.":12}
53
 			'wsconn': {"abc.":12}
54
 		}))
54
 		}))
55
+		'''
55
 
56
 
56
 		# print("",end="",flush=True)
57
 		# print("",end="",flush=True)
57
 		self.accept()
58
 		self.accept()
58
 
59
 
59
-
60
+		r'''
60
 		await self.send(text_data=json.dumps({
61
 		await self.send(text_data=json.dumps({
61
 			'wsconn': {"abc.":123}
62
 			'wsconn': {"abc.":123}
62
 		}))
63
 		}))
64
+		'''
63
 
65
 
64
 
66
 
65
 	async def ws_disconn(self, close_code):
67
 	async def ws_disconn(self, close_code):

Loading…
Cancel
Save