浏览代码

auto commit

master
jfinn 3 年前
父节点
当前提交
6879df0778
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      wsps/consumers.py

+ 3
- 1
wsps/consumers.py 查看文件

@@ -2,7 +2,7 @@
2 2
 import json
3 3
 from channels.generic.websocket import WebsocketConsumer
4 4
 import wsps.tasks_loop
5
-
5
+import time
6 6
 p=print
7 7
 
8 8
 class ChatConsumer(WebsocketConsumer):
@@ -35,6 +35,8 @@ class ChatConsumer(WebsocketConsumer):
35 35
 
36 36
 
37 37
 print("++?",end="\n",flush=True)
38
+time.sleep(15.5)
39
+print("++2?",end="\n",flush=True)
38 40
 # print("++",end="\n",flush=True)
39 41
 
40 42
 

正在加载...
取消
保存