2016-10-28 01:47:40 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
|
|
|
|
2016-11-30 00:52:15 +08:00
|
|
|
import handleCreateBreakout from './handlers/createBreakout';
|
|
|
|
import handleBreakoutStarted from './handlers/breakoutStarted';
|
|
|
|
import handleBreakoutJoinURL from './handlers/breakoutJoinURL';
|
|
|
|
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
|
|
|
|
import handleBreakoutClosed from './handlers/breakoutClosed';
|
2016-11-14 19:57:10 +08:00
|
|
|
|
2016-11-30 00:52:15 +08:00
|
|
|
RedisPubSub.on('CreateBreakoutRoomRequest', handleCreateBreakout);
|
|
|
|
RedisPubSub.on('BreakoutRoomStarted', handleBreakoutStarted);
|
|
|
|
RedisPubSub.on('BreakoutRoomJoinURL', handleBreakoutJoinURL);
|
|
|
|
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdate', handleUpdateTimeRemaining);
|
|
|
|
RedisPubSub.on('BreakoutRoomClosed', handleBreakoutClosed);
|