add method

  1. @override
void add(
  1. List<int> bytes
)
override

Sends bytes to the server.

Write errors are reported through done and input, not thrown.

Implementation

@override
void add(List<int> bytes) {
  if (_closer.closed) return;
  _outgoing.add(bytes is Uint8List ? bytes : Uint8List.fromList(bytes));
}