test.html
This commit is contained in:
parent
013fc1d905
commit
d71f82c54b
@ -109,7 +109,7 @@ class DisconnectionHandler(websocket.WebSocketHandler):
|
|||||||
def open(self) :
|
def open(self) :
|
||||||
print "->Websocket opened"
|
print "->Websocket opened"
|
||||||
|
|
||||||
def on_message(self,mesg)
|
def on_message(self,mesg):
|
||||||
try :
|
try :
|
||||||
f = urlopen('http://test:a@192.168.1.15/image.jpg?cidx=791836195')
|
f = urlopen('http://test:a@192.168.1.15/image.jpg?cidx=791836195')
|
||||||
data = f.read()
|
data = f.read()
|
||||||
@ -118,7 +118,7 @@ class DisconnectionHandler(websocket.WebSocketHandler):
|
|||||||
except Exception, e :
|
except Exception, e :
|
||||||
self.writemessage("")
|
self.writemessage("")
|
||||||
|
|
||||||
def on_close(self)
|
def on_close(self):
|
||||||
print "->Websocket closed"
|
print "->Websocket closed"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user