mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 06:31:33 +00:00
Updated Event handlers (markdown)
parent
b1525cbc8c
commit
bbd3c028f5
@ -1 +1,5 @@
|
||||
Empty.
|
||||
Imagine event handlers as callbacks that are invoked when TFW receives a specific type of message. For instance, you could send a message to the framework when the user does something of note. They are subscribed to a specific set of keys and messages are forwarded to them when one of their keys is the prefix of the one in the message.
|
||||
|
||||
Event handlers allow you to define actions triggered on the backend when the user presses a button on the frontend or moves the cursor to a specific area, etc.
|
||||
|
||||
They use **ZeroMQ** to connect to the framework. Due to this they are as loosely-coupled as possible: usually they are running in separate processes and only communicate with TFW through ZMQ.
|
Loading…
Reference in New Issue
Block a user