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

42 lines
2.8 KiB
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2017-06-19 21:13:35 +08:00
import handleMeetingCreation from './handlers/meetingCreation';
2017-07-03 23:05:35 +08:00
import handleGetAllMeetings from './handlers/getAllMeetings';
2017-07-22 03:34:28 +08:00
import handleMeetingEnd from './handlers/meetingEnd';
2017-10-11 02:30:45 +08:00
import handleMeetingDestruction from './handlers/meetingDestruction';
import handleMeetingLocksChange from './handlers/meetingLockChange';
2020-02-04 04:41:12 +08:00
import handleGuestPolicyChanged from './handlers/guestPolicyChanged';
import handleGuestLobbyMessageChanged from './handlers/guestLobbyMessageChanged';
2017-09-07 03:53:07 +08:00
import handleUserLockChange from './handlers/userLockChange';
import handleUserChatLockChange from './handlers/handleUserChatLockChange';
2017-10-19 18:44:41 +08:00
import handleRecordingStatusChange from './handlers/recordingStatusChange';
2019-01-04 02:14:35 +08:00
import handleRecordingTimerChange from './handlers/recordingTimerChange';
import handleTimeRemainingUpdate from './handlers/timeRemainingUpdate';
import handleChangeWebcamOnlyModerator from './handlers/webcamOnlyModerator';
import handleSelectRandomViewer from './handlers/selectRandomViewer';
import handleBroadcastLayout from './handlers/broadcastLayout';
2022-03-11 03:33:25 +08:00
import handleNotifyAllInMeetingEvtMsg from './handlers/handleNotifyAllInMeetingEvtMsg';
import handleNotifyUserInMeeting from './handlers/handleNotifyUserInMeeting';
import handleNotifyRoleInMeeting from './handlers/handleNotifyRoleInMeeting';
import handleBroadcastPushLayout from './handlers/broadcastPushLayout';
2017-06-19 21:13:35 +08:00
RedisPubSub.on('MeetingCreatedEvtMsg', handleMeetingCreation);
2017-07-03 23:05:35 +08:00
RedisPubSub.on('SyncGetMeetingInfoRespMsg', handleGetAllMeetings);
2017-07-22 03:34:28 +08:00
RedisPubSub.on('MeetingEndingEvtMsg', handleMeetingEnd);
2017-10-11 02:30:45 +08:00
RedisPubSub.on('MeetingDestroyedEvtMsg', handleMeetingDestruction);
2017-08-31 02:35:40 +08:00
RedisPubSub.on('LockSettingsInMeetingChangedEvtMsg', handleMeetingLocksChange);
2017-09-07 22:31:19 +08:00
RedisPubSub.on('UserLockedInMeetingEvtMsg', handleUserLockChange);
RedisPubSub.on('LockUserChatInMeetingEvtMsg', handleUserChatLockChange);
2017-10-19 18:44:41 +08:00
RedisPubSub.on('RecordingStatusChangedEvtMsg', handleRecordingStatusChange);
2019-01-04 02:14:35 +08:00
RedisPubSub.on('UpdateRecordingTimerEvtMsg', handleRecordingTimerChange);
RedisPubSub.on('WebcamsOnlyForModeratorChangedEvtMsg', handleChangeWebcamOnlyModerator);
RedisPubSub.on('GetLockSettingsRespMsg', handleMeetingLocksChange);
2020-02-04 04:41:12 +08:00
RedisPubSub.on('GuestPolicyChangedEvtMsg', handleGuestPolicyChanged);
RedisPubSub.on('GuestLobbyMessageChangedEvtMsg', handleGuestLobbyMessageChanged);
RedisPubSub.on('MeetingTimeRemainingUpdateEvtMsg', handleTimeRemainingUpdate);
RedisPubSub.on('SelectRandomViewerRespMsg', handleSelectRandomViewer);
RedisPubSub.on('BroadcastLayoutEvtMsg', handleBroadcastLayout);
2022-03-11 03:33:25 +08:00
RedisPubSub.on('NotifyAllInMeetingEvtMsg', handleNotifyAllInMeetingEvtMsg);
RedisPubSub.on('NotifyUserInMeetingEvtMsg', handleNotifyUserInMeeting);
RedisPubSub.on('NotifyRoleInMeetingEvtMsg', handleNotifyRoleInMeeting);
RedisPubSub.on('BroadcastPushLayoutEvtMsg', handleBroadcastPushLayout);