TsgcWebSocketClient › Eigenschappen › NotifyEvents
Bepaalt hoe WebSocket-gebeurtenissen worden verzonden naar de hoofdthread.
__property TwsNotifyEvent NotifyEvents;
neAsynchronous
Er zijn drie modi beschikbaar: neAsynchronous (standaard) plaatst gebeurtenissen in een wachtrij en synchroniseert ze asynchroon met de hoofdthread; neSynchronous blokkeert de verbindingsthread totdat de hoofdthread de gebeurtenis heeft verwerkt (gebruikt TThread.Synchronize); neNoSync activeert gebeurtenissen rechtstreeks op de verbindingsthread, wat sneller is maar vereist dat de gebeurtenishandler threadveilig is.
oClient = new TsgcWebSocketClient();
oClient->URL = "wss://www.esegece.com:2053";
oClient->NotifyEvents = neSynchronous;
oClient->Active = true;