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';
|
2017-06-27 20:40:28 +08:00
|
|
|
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';
|
2017-09-22 01:55:07 +08:00
|
|
|
import handleUserKicked from './handlers/userKicked';
|
2017-06-27 20:40:28 +08:00
|
|
|
|
|
|
|
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);
|
2017-06-27 20:40:28 +08:00
|
|
|
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);
|
2017-09-22 01:55:07 +08:00
|
|
|
RedisPubSub.on('UserEjectedFromMeetingEvtMsg', handleUserKicked);
|