From d71f82c54b8e61e79f65d8ca2c5c1e0faa075bf7 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 06:02:35 +0100 Subject: [PATCH] test.html --- superTornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superTornado.py b/superTornado.py index 0d61db1..69870f4 100644 --- a/superTornado.py +++ b/superTornado.py @@ -109,7 +109,7 @@ class DisconnectionHandler(websocket.WebSocketHandler): def open(self) : print "->Websocket opened" - def on_message(self,mesg) + def on_message(self,mesg): try : f = urlopen('http://test:a@192.168.1.15/image.jpg?cidx=791836195') data = f.read() @@ -118,7 +118,7 @@ class DisconnectionHandler(websocket.WebSocketHandler): except Exception, e : self.writemessage("") - def on_close(self) + def on_close(self): print "->Websocket closed"