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

23 lines
1.3 KiB
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2017-02-23 01:49:44 +08:00
import handleRemoveUser from './handlers/removeUser';
2017-02-24 02:05:18 +08:00
import handleUserJoined from './handlers/userJoined';
import handleValidateAuthToken from './handlers/validateAuthToken';
2017-10-12 09:02:23 +08:00
import handlePresenterAssigned from './handlers/presenterAssigned';
import handleEmojiStatus from './handlers/emojiStatus';
import handleGetUsers from './handlers/getUsers';
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
import handleGuestApproved from './handlers/guestApproved';
import handleUserEjected from './handlers/userEjected';
import handleChangeRole from './handlers/changeRole';
2017-10-12 09:02:23 +08:00
RedisPubSub.on('PresenterAssignedEvtMsg', handlePresenterAssigned);
RedisPubSub.on('UserJoinedMeetingEvtMsg', handleUserJoined);
RedisPubSub.on('UserLeftMeetingEvtMsg', handleRemoveUser);
RedisPubSub.on('ValidateAuthTokenRespMsg', handleValidateAuthToken);
RedisPubSub.on('UserEmojiChangedEvtMsg', handleEmojiStatus);
RedisPubSub.on('SyncGetUsersMeetingRespMsg', handleGetUsers);
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', handleGuestsWaitingForApproval);
RedisPubSub.on('GuestsWaitingApprovedEvtMsg', handleGuestApproved);
2017-10-12 09:02:23 +08:00
RedisPubSub.on('UserEjectedFromMeetingEvtMsg', handleUserEjected);
RedisPubSub.on('UserRoleChangedEvtMsg', handleChangeRole);