Emit event WS Emit event web-socket System API Emit event of websocket using global object 'g'. 1await g.sys.system.emitEventWS("EVENT_NAME", "EVENT_DATA"); 1 2 3 4await g.sys.system.emitEventWS( "myEvent", { "name": "Bob" } );