pushData method

  1. @override
void pushData(
  1. Uint8List bytes
)
override

Puts bytes back at the front of the read queue, e.g. bytes that multistream-select read past the end of its negotiation.

Implementation

@override
void pushData(Uint8List bytes) {
  if (bytes.isEmpty) return;
  _readQueue.insert(0, bytes);
  _wakeReaders();
}