I think what happens is that my server sends so many messages in such a short time, that too many messages are concatenated that the resulting string exceeds the 256 byte readbuffer of the clients. I guess due to this the clients dont recieve all data (some data will get lost when the server sends a string that exceeds the clients readbuffer, right?), and that some incomplete messages reach the clients messageRecieved method, where i want to interprete and react to incoming messages.

I guess i need to find a way to interprete concatenated messages and make sure that data is sent in such a way that the predefined size of the readbuffer will suffice.