11 lines
608 B
JavaScript
11 lines
608 B
JavaScript
import RedisPubSub from '/imports/startup/server/redis2x';
|
|
import handleBreakoutJoinURL from './handlers/breakoutJoinURL';
|
|
import handleBreakoutStarted from './handlers/breakoutStarted';
|
|
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
|
|
import handleBreakoutClosed from './handlers/breakoutClosed';
|
|
|
|
RedisPubSub.on('BreakoutRoomStartedEvtMsg', handleBreakoutStarted);
|
|
RedisPubSub.on('BreakoutRoomJoinURLEvtMsg', handleBreakoutJoinURL);
|
|
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdateEvtMsg', handleUpdateTimeRemaining);
|
|
RedisPubSub.on('BreakoutRoomEndedEvtMsg', handleBreakoutClosed);
|