sendData method
Publishes one sample: exactly NetworkStream.channelCount values whose runtime types match NetworkStream.dataType.
Validate with DataStreamConfig.validateSample before transmitting.
Implementation
@override
Future<void> sendData(Iterable<dynamic> data) async {
if (!started) throw StateError('Stream not started');
config.validateSample(data);
publishSample(data.toList(growable: false));
}