Daronee02/19/2021, 12:48 AM
function of a thread Its like the app is receiving the data from the inputstream consistently. It always varies Seems to be a problem when the number of bytes > ~6 for some reason?
Jiddles02/19/2021, 2:03 PM
explictly says it maintains the order. Maybe give that a try and see if there’s any difference ?
Daronee02/19/2021, 6:27 PM
was just not having it in terms of recieving Byte data. I changed my buffer from a ByteArray to a charArray and received the data using `val ch = socket.inputStream.read().toChar`and got way better results.