property EventsCallMode: TScEventCallMode; default ecAsynchronous;

 

Description

The EventsCallMode property determines how the event handlers will be called. The thing is that data coming from the server is processed in a separate thread of the WebSocket connection. And the call of the event handlers can occur in a different way for synchronization with the main thread of the application.

The default value is the ecAsynchronous mode when the events are added to a queue and then asynchronously synchronized from this queue with the main thread. This allows not slowing down the thread in which events occur and at the same calling the event handlers in the main thread.

When setting the property to the ecSynchronous value, the event call will be immediately synchronized with the main thread.

When setting the property to the ecDirectly value, there is no synchronization with the main thread.

Default value is the ecAsynchronous mode.

 

See also

OnControlMessage

OnMessage

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support