We use cookies
We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.
var
i: integer;
s: string;
begin
for i := 1 to 10000000 do
s := s + '0';
WSClient.WriteData(s);
Hi,
Error 22 Invalid argument usually means a problem while binding to a IP/Port, I can't reproduce here, I've put an exception in OnMessage event of server and if WatchDog is enabled it recovers the connection automatically. The same if WatchDog is enabled and after it's disconnected, I set Active := True, it works well.
When you say client restarted, you mean Android application is restarted or the Android device is restarted?
Kind regards,
Sergio