The server is built with Java, i dont think that the issue within the server sense i already have another client in java works properly.
also tested in Delphi Tidtcpclient and it works Fine without missing packets.
in Twsocket i am not doing anything special , i have just placed Twsocket then ondataAvailable Event i read the data
procedure TForm1.asockDataAvailable(Sender: TObject; ErrCode: Word);
var
datastr : string;
begin
datastr := asock.ReceiveStrW(CP_UTF8);
Memo1.lines.add(datastr);
end;
The server is using CRLF for each packet maybe this is an issue ?