Difference between revisions of "Eventrouter Future"
Jump to navigation
Jump to search
Which Linden (talk | contribs) (Originally penned by donovan, I'm just copying this here.) |
m (Added syntax highlighting) |
||
Line 1: | Line 1: | ||
This is a notes page on a possible future direction for eventrouter. | This is a notes page on a possible future direction for {{code|eventrouter}}. | ||
* public events are published at app/event/[0..] | * public events are published at {{code|app/event/[0..]}} | ||
* private events are published at app/<cap>/event/[0..] | * private events are published at {{code|app/<cap>/event/[0..]}} | ||
* events are generated by callbacks triggered by a generic rest store | * events are generated by callbacks triggered by a generic rest store: | ||
<syntaxhighlight lang="python"> | |||
rest_root = {} | |||
def root_changed_callback(router, change_description): | |||
router.Broadcast('event', {}) | |||
app = Router() | |||
real_root = {'store': rest_root, 'app': app} | |||
</syntaxhighlight> | |||
* js api for changing the server is REST only | * js api for changing the server is REST only |
Latest revision as of 08:23, 13 October 2022
This is a notes page on a possible future direction for eventrouter
.
- public events are published at
app/event/[0..]
- private events are published at
app/<cap>/event/[0..]
- events are generated by callbacks triggered by a generic rest store:
rest_root = {}
def root_changed_callback(router, change_description):
router.Broadcast('event', {})
app = Router()
real_root = {'store': rest_root, 'app': app}
- js api for changing the server is REST only