

def close(self, reply_code=0, reply_text='', class_id=0, method_id=0, disconnect=False):
    '\n        Close this connection.\n        '
    self._close_info = {
        'reply_code': reply_code,
        'reply_text': reply_text,
        'class_id': class_id,
        'method_id': method_id,
    }
    if disconnect:
        self._closed = True
        self.disconnect()
        self._callback_close()
    else:
        self._channels[0].close()

dataset/ETHPy150Open agoragames/haigha/haigha/connection.py Connection.close/original