示例#1
0
 def post_connected(self):
     logger.info("bcs client connected, %s", self.msg_handler.user_pod_name)
     msg = hello_message(self.msg_handler.source)
     self.msg_handler.write_message(self.encode_console_msg(msg))
     self.msg_handler.start_record()
     self.msg_handler.tick_timeout()
     self.set_pty_size(self.init_rows, self.init_cols)
示例#2
0
 def post_connected(self):
     logger.info("connected")
     self.msg_handler.write_message(
         {'data': hello_message(self.msg_handler.source)})
     self.msg_handler.start_record()
     self.msg_handler.tick_timeout()
     self.set_pty_size(self.init_rows, self.init_cols)