read method
- int? length
override
Reads data from the connection.
If length is provided, reads exactly that many bytes.
Otherwise, reads whatever is available.
Implementation
@override
Future<Uint8List> read([int? length]) async {
// Raw transport reads are not used for QUIC because the handshake is
// performed inside the QUIC crypto frame stream.
throw UnsupportedError(
'QuicConnection does not support raw transport reads; use streams.',
);
}