예제 #1
0
 def on_open_connection(self,conn):
     gen.listen(conn.on_open(),conn.exception_callback)
예제 #2
0
 def on_close_connection(self,conn,code=None, reason=None):
     try:
         gen.listen(conn.on_close(code,reason),conn.exception_callback)
     except Exception, e:
         pass
예제 #3
0
 def gen_listen(self,res):
     return gen.listen(res,self.exception_callback)