repeat
dw := MsgWaitForTwoObjects(TerminateEvent, PublishEvent, false, 500, QS_ALLINPUT);
if dw = WAIT_OBJECT_0 then
break;
ProcessThreadMessages;
until false;
However after setting Active to True nothing happens. OnConnect OnDisconnect OnError OnException are never called.
Opening the same connection in the demo Client application works correctly however there everything is running in the VCL thread and components are on the form.
What am I doing wrong? I could not find any Delphi example that would be using TsgcWebSocketClient in TThread.Execute.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »