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

11 lines
608 B
JavaScript
Raw Normal View History

2017-06-27 02:00:28 +08:00
import RedisPubSub from '/imports/startup/server/redis2x';
import handleBreakoutJoinURL from './handlers/breakoutJoinURL';
2017-06-27 20:27:57 +08:00
import handleBreakoutStarted from './handlers/breakoutStarted';
2017-06-27 02:00:28 +08:00
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
import handleBreakoutClosed from './handlers/breakoutClosed';
2017-06-27 20:27:57 +08:00
RedisPubSub.on('BreakoutRoomStartedEvtMsg', handleBreakoutStarted);
2017-06-27 02:00:28 +08:00
RedisPubSub.on('BreakoutRoomJoinURLEvtMsg', handleBreakoutJoinURL);
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdateEvtMsg', handleUpdateTimeRemaining);
2017-08-15 02:52:18 +08:00
RedisPubSub.on('BreakoutRoomEndedEvtMsg', handleBreakoutClosed);