Additional functions
Run your own logic after message delivery
var _M = _M || {}; //depending on when your script is executed, the _M namespace might exist or not.
_M.preEventHandler = function (incomingMessage) {
console.log("Gets executed before the event handler gets called at all, so the first moment data comes into your website", incomingMessage);
};
_M.preRender = function (incomingMessage, pendingDomChange) {
console.log("Gets executed before the render of an incoming DOM Change. The DOM change itself is built and ready to render.", incomingMessage);
};
_M.postRender = function (incomingMessage) {
console.log("Gets executed after the render of an incoming DOM Change", incomingMessage);
};Send your own event from anywhere in the backend code
To all users
To a specific user
Last updated