Sorry for the double post but it seems for the time being I found the issue with the data sending. In my sockets connection handler there was a single socket.write command sending a message of "ready" to the client, However as i had changed the method of reading data, this single message was remaining inside the sockets buffer, causing further incoming messages to crash into this causing a heap of information which was not being read accordingly.