Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Emit event

g.sys.system.emitEvent calls the emit event system API from your code, whatever the settings of that API say about HTTP callers.

Emit event System API

Emit event using global object 'g'.

await g.sys.system.emitEvent("EVENT_NAME", "EVENT_DATA", ["LISTENERS_NAME"]);