2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2016-11-30 00:52:15 +08:00
|
|
|
import handleBreakoutJoinURL from './handlers/breakoutJoinURL';
|
2017-10-12 05:25:18 +08:00
|
|
|
import handleBreakoutStarted from './handlers/breakoutStarted';
|
2016-11-30 00:52:15 +08:00
|
|
|
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
|
|
|
|
import handleBreakoutClosed from './handlers/breakoutClosed';
|
2016-11-14 19:57:10 +08:00
|
|
|
|
2017-10-12 05:25:18 +08:00
|
|
|
RedisPubSub.on('BreakoutRoomStartedEvtMsg', handleBreakoutStarted);
|
|
|
|
RedisPubSub.on('BreakoutRoomJoinURLEvtMsg', handleBreakoutJoinURL);
|
2018-07-07 01:00:44 +08:00
|
|
|
RedisPubSub.on('RequestBreakoutJoinURLRespMsg', handleBreakoutJoinURL);
|
2017-10-12 05:25:18 +08:00
|
|
|
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdateEvtMsg', handleUpdateTimeRemaining);
|
|
|
|
RedisPubSub.on('BreakoutRoomEndedEvtMsg', handleBreakoutClosed);
|