How event handlers are executed

When an event handler is triggered, a temporary internal connection is made, on which the event handler is executed. The handler is not executed on the connection that caused the handler to be triggered, and consequently statements such as MESSAGE … TO CLIENT, which interact with the client application, are not meaningful within event handlers.

See”How event handlers are executed” in SQL Anywhere Server - SQL Usage.