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

19 lines
1.0 KiB
JavaScript
Raw Normal View History

2017-06-19 21:13:35 +08:00
import RedisPubSub from '/imports/startup/server/redis2x';
import handleRemoveUser from './handlers/removeUser';
import handleUserJoined from './handlers/userJoined';
import handleValidateAuthToken from './handlers/validateAuthToken';
import handlePresenterAssigned from './handlers/presenterAssigned';
import handleEmojiStatus from './handlers/emojiStatus';
2017-07-03 23:05:35 +08:00
import handleGetUsers from './handlers/getUsers';
2017-07-14 22:18:07 +08:00
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
import handleGuestApproved from './handlers/guestApproved';
RedisPubSub.on('PresenterAssignedEvtMsg', handlePresenterAssigned);
2017-06-22 00:54:04 +08:00
RedisPubSub.on('UserJoinedMeetingEvtMsg', handleUserJoined);
RedisPubSub.on('UserLeftMeetingEvtMsg', handleRemoveUser);
2017-06-19 21:13:35 +08:00
RedisPubSub.on('ValidateAuthTokenRespMsg', handleValidateAuthToken);
RedisPubSub.on('UserEmojiChangedEvtMsg', handleEmojiStatus);
2017-07-03 23:05:35 +08:00
RedisPubSub.on('SyncGetUsersMeetingRespMsg', handleGetUsers);
2017-07-14 22:18:07 +08:00
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', handleGuestsWaitingForApproval);
RedisPubSub.on('GuestApprovedEvtMsg', handleGuestApproved);