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

15 lines
893 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2016-11-30 00:52:15 +08:00
import handleBreakoutJoinURL from './handlers/breakoutJoinURL';
import handleBreakoutRoomsList from './handlers/breakoutList';
2016-11-30 00:52:15 +08:00
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
import handleBreakoutClosed from './handlers/breakoutClosed';
import joinedUsersChanged from './handlers/joinedUsersChanged';
import userBreakoutChanged from '/imports/api/breakouts/server/handlers/userBreakoutChanged';
2016-11-14 19:57:10 +08:00
RedisPubSub.on('BreakoutRoomsListEvtMsg', handleBreakoutRoomsList);
RedisPubSub.on('BreakoutRoomJoinURLEvtMsg', handleBreakoutJoinURL);
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdateEvtMsg', handleUpdateTimeRemaining);
RedisPubSub.on('BreakoutRoomEndedEvtMsg', handleBreakoutClosed);
RedisPubSub.on('UpdateBreakoutUsersEvtMsg', joinedUsersChanged);
RedisPubSub.on('ChangeUserBreakoutEvtMsg', userBreakoutChanged);