Browse Source

auto commit

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

+ 4
- 3
wsps/consumers.py View File

@@ -45,12 +45,13 @@ class ChatConsumer(
45 45
 
46 46
         # p("!!!!!!!!!!!!!!!!!!!!")
47 47
         # print("",end="",flush=True)
48
-        self.accept()
49
-
50
-
51 48
         await self.send(text_data=json.dumps({
52 49
             'wsconn': {"abc.":123}
53 50
         }))
51
+        self.accept()
52
+
53
+
54
+
54 55
 
55 56
 
56 57
     async def ws_disconn(self, close_code):

Loading…
Cancel
Save