test.html

This commit is contained in:
sidya82 2014-02-28 06:04:32 +01:00
parent b99226a23d
commit 0b9dde0968
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class DisconnectionHandler(BaseHandler):
self.set_cookie("user", "0")
self.redirect("/")
class DisconnectionHandler(tornado.websocket.WebSocketHandler):
class TestSocket(tornado.websocket.WebSocketHandler):
def open(self) :
print "->Websocket opened"
@ -134,7 +134,7 @@ application = tornado.web.Application([
(r"/ajax", AJAXHandler),
(r"/disconnection", DisconnectionHandler),
(r"/test", TestSocket),
(r"/testHtml", TestSocket),
(r"/testHtml", testHtml),
], cookie_secret="1213215656")
if __name__ == "__main__":