Skip to content

Emit event WS

Emit event web-socket System API

Emit event of websocket using global object 'g'.

await g.sys.system.emitEventWS("EVENT_NAME", "EVENT_DATA");
1
2
3
4
await g.sys.system.emitEventWS(
    "myEvent", 
    { "name": "Bob" }
);