

def _recv_close(self, method_frame):
    self.connection._close_info = {
        'reply_code': method_frame.args.read_short(),
        'reply_text': method_frame.args.read_shortstr(),
        'class_id': method_frame.args.read_short(),
        'method_id': method_frame.args.read_short(),
    }
    self._send_close_ok()
    self.connection._closed = True
    self.connection.disconnect()
    self.connection._callback_close()

dataset/ETHPy150Open agoragames/haigha/haigha/connection.py ConnectionChannel._recv_close/original