modifié: superTornado.py
This commit is contained in:
parent
70235c676e
commit
b62afa11aa
@ -251,7 +251,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
socket.setdefaulttimeout(5)
|
socket.setdefaulttimeout(5)
|
||||||
f = urlopen(GlobalVars.urlCamera)
|
f = urlopen(GlobalVars.urlCamera)
|
||||||
data = f.read()
|
data = f.read()
|
||||||
temp.write(f.read())
|
temp.write(data)
|
||||||
encoded = base64.b64encode(data)
|
encoded = base64.b64encode(data)
|
||||||
f.close()
|
f.close()
|
||||||
self.write_message(encoded)
|
self.write_message(encoded)
|
||||||
|
Reference in New Issue
Block a user