modifié: superTornado.py
This commit is contained in:
parent
0431210ab7
commit
3bcfa4f26b
@ -93,11 +93,11 @@ class DisconnectionHandler(BaseHandler):
|
|||||||
self.set_cookie("user", "0")
|
self.set_cookie("user", "0")
|
||||||
self.redirect("/")
|
self.redirect("/")
|
||||||
|
|
||||||
class WSocketHandler(tornado.websocket.WebSocketHandler):
|
class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||||
def open(self) :
|
def open(self) :
|
||||||
""""if not self.current_user :
|
if not self.current_user :
|
||||||
self.close()
|
self.close()
|
||||||
return"""
|
return
|
||||||
print "->Websocket opened"
|
print "->Websocket opened"
|
||||||
|
|
||||||
try :
|
try :
|
||||||
|
Reference in New Issue
Block a user