In the sendReceiveCustomData function, data is intended to be sent in chunks based on a specified packageSize. However, there is an issue with the offset not being updated in each iteration. This results in the initial data portion being sent repeatedly instead of progressing through the full data.
Steps to Reproduce:
- Use the sendReceiveCustomData function to send a large data payload.
- Observe the logs on the receiving end, which show the initial portion of data being received repeatedly.