Sometimes, when I send a bytes payload, it fails to transmit, and I receive an error in onPayloadTransferUpdate. Then, I would like to try resending the same payload again, but for that I would need to be able to correlate the payload ID I get in PayloadTransferUpdate with the ID of the payload that was sent, but I only get a payload ID back when sending a file, not bytes. I tried to add this feature myself, making sendBytesPayload return a Future<int> instead of a Future<void>, but it seems to be useless because the transfer update is called before sendBytes returns.
Would it even be possible?