C++
Handling Events
Events allow your application to respond to changes in user context instantly. These events are automatically captured when relevant changes occur. You can subscribe to them by registering event listeners.
The EventQueue And Handling Events
Sample code on this page is based on the same initial assumptions.
Key Considerations
Please note the following:
- Events will only trigger for active connections.
- Events are not captured unless explicitly listened for.
- A single instance of the
eventQueue
is shared across all connections.
Handling The Incoming Event
Below there is simple code example of how to handle an event coming after new message has been sent to the Thread.
As soon as the new message arrives to the Thread - the ThreadNewMessageEvent
will be emitted and handled by the EventQueue
.
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.