Commit 551304e9 by 熊付

【websocket添加监听握手延时】

1 parent 50bccd26
......@@ -2,7 +2,7 @@
from socket import *
import json, time, threading
import apps.gbvar.ws_serv_global as sv_global
import gbvar.ws_serv_global as sv_global
config = {
'LISTEN_CLIENT': 50,
'KEY': '391f10fadc339e9ec5fa15af60030ac1',
......@@ -90,6 +90,7 @@ class Server ():
self.clients[address] = tcpClientSock
self.thrs[address] = threading.Thread ( target=self.readMsg, args=[address] )
self.thrs[address].start ()
time.sleep ( 0.001 )
# print(self.clients)
def readMsg(self, address):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!