def close(
        self,
        error_code: int = QuicErrorCode.NO_ERROR,
        reason_phrase: str = "",
    ) -> None:
        """
        Close the connection.

        :param error_code: An error code indicating why the connection is
                           being closed.
        :param reason_phrase: A human-readable explanation of why the
                              connection is being closed.
        """
        self._quic.close(
            error_code=error_code,
            reason_phrase=reason_phrase,
        )
        self.transmit()

        Close the connection.

        :param error_code: An error code indicating why the connection is
                           being closed.
        :param reason_phrase: A human-readable explanation of why the
                              connection is being closed.
        
src/aioquic/asyncio/protocol.py