Пример #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)