Event system allows scripts register callbacks into script API
Example:
scriptInstance.listen("base::init", function() { log("Hello world") })
The above example registered init event in base namespace, and it will loaded in script setup section
Last updated 2 years ago