modifié: superTornado.py
This commit is contained in:
parent
5f8d775b1b
commit
6e73a99de2
@ -117,10 +117,10 @@ class TestSocket(tornado.websocket.WebSocketHandler):
|
|||||||
encoded = base64.b64encode(data)
|
encoded = base64.b64encode(data)
|
||||||
self.write_message(encoded)
|
self.write_message(encoded)
|
||||||
except tornado.websocket.WebSocketClosedError:
|
except tornado.websocket.WebSocketClosedError:
|
||||||
pass
|
self.write_message("error ")
|
||||||
#break
|
#break
|
||||||
else :
|
else :
|
||||||
self.write_message(" ")
|
self.write_message("aa")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
def on_message(self,mesg):
|
def on_message(self,mesg):
|
||||||
|
Reference in New Issue
Block a user