dataToSend method
Implementation
Uint8List dataToSend() {
final builder = BytesBuilder();
while (_sendQueue.isNotEmpty) {
onTrace?.call('-> ${_sendQueue.first}');
builder.add(_sendQueue.removeFirst().encode());
}
return builder.toBytes();
}