Iframe Events

When the iframe integration is enabled, some events are triggered. These events include the following:

Here is a sample code that listens to events fired from Rocket.Chat opened on an iframe:

window.addEventListener('message', function(e) {
    console.log(e.data.eventName); // event name
    console.log(e.data.data); // event data
});

Last updated

Rocket.Chat versions receive support for six months after release.