test.html
This commit is contained in:
parent
b99226a23d
commit
0b9dde0968
@ -105,7 +105,7 @@ class DisconnectionHandler(BaseHandler):
|
|||||||
self.set_cookie("user", "0")
|
self.set_cookie("user", "0")
|
||||||
self.redirect("/")
|
self.redirect("/")
|
||||||
|
|
||||||
class DisconnectionHandler(tornado.websocket.WebSocketHandler):
|
class TestSocket(tornado.websocket.WebSocketHandler):
|
||||||
def open(self) :
|
def open(self) :
|
||||||
print "->Websocket opened"
|
print "->Websocket opened"
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ application = tornado.web.Application([
|
|||||||
(r"/ajax", AJAXHandler),
|
(r"/ajax", AJAXHandler),
|
||||||
(r"/disconnection", DisconnectionHandler),
|
(r"/disconnection", DisconnectionHandler),
|
||||||
(r"/test", TestSocket),
|
(r"/test", TestSocket),
|
||||||
(r"/testHtml", TestSocket),
|
(r"/testHtml", testHtml),
|
||||||
], cookie_secret="1213215656")
|
], cookie_secret="1213215656")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user