sendData method

void sendData(
  1. List<int> bytes, {
  2. bool endStream = false,
})

Implementation

void sendData(List<int> bytes, {bool endStream = false}) {
  outgoingMessages.add(DataStreamMessage(bytes, endStream: endStream));
  if (endStream) outgoingMessages.close();
}