bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/modifiers/emitNotification.js
2022-03-10 16:33:25 -03:00

11 lines
289 B
JavaScript

import notificationEmitter from '../../notificationEmitter';
export default function emitNotification(body, type) {
if (!process.env.BBB_HTML5_ROLE || (process.env.BBB_HTML5_ROLE === 'frontend')) {
notificationEmitter.emit('notification', {
type,
...body,
});
}
}