All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lib.xp.examples.event.send.js Maven / Gradle / Ivy

var eventLib = require('/lib/xp/event');

// BEGIN
// Sends a custom event named "custom.myEvent".
eventLib.send({
    type: 'myEvent',
    distributed: false,
    data: {
        a: 1,
        b: 2,
    },
});
// END




© 2015 - 2024 Weber Informatics LLC | Privacy Policy