bigbluebutton-Github/bigbluebutton-html5/imports/api/guest-users/server/eventHandlers.js

12 lines
803 B
JavaScript
Raw Normal View History

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';
2022-01-12 22:10:30 +08:00
import handlePrivateGuestLobbyMessageChanged from './handlers/privateGuestLobbyMessageChanged'
RedisPubSub.on('GuestWaitingLeftEvtMsg', handleGuestWaitingLeft);
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', processForHTML5ServerOnly(handleGuestsWaitingForApproval));
RedisPubSub.on('GuestsWaitingApprovedEvtMsg', processForHTML5ServerOnly(handleGuestApproved));
2022-01-12 22:10:30 +08:00
RedisPubSub.on('PrivateGuestLobbyMsgChangedEvtMsg', handlePrivateGuestLobbyMessageChanged);