bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/modifiers/emitNotification.js

11 lines
289 B
JavaScript
Raw Normal View History

2022-03-11 03:33:25 +08:00
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,
});
}
}