bigbluebutton-Github/bigbluebutton-html5/imports/api/guest-users/server/eventHandlers.js
2022-01-12 14:10:30 +00:00

12 lines
803 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis';
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
import handleGuestApproved from './handlers/guestApproved';
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
import handleGuestWaitingLeft from './handlers/guestWaitingLeft';
import handlePrivateGuestLobbyMessageChanged from './handlers/privateGuestLobbyMessageChanged'
RedisPubSub.on('GuestWaitingLeftEvtMsg', handleGuestWaitingLeft);
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', processForHTML5ServerOnly(handleGuestsWaitingForApproval));
RedisPubSub.on('GuestsWaitingApprovedEvtMsg', processForHTML5ServerOnly(handleGuestApproved));
RedisPubSub.on('PrivateGuestLobbyMsgChangedEvtMsg', handlePrivateGuestLobbyMessageChanged);