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';
|
2021-12-02 22:05:42 +08:00
|
|
|
import handleBreakoutRoomsList from './handlers/breakoutList';
|
2016-11-30 00:52:15 +08:00
|
|
|
import handleUpdateTimeRemaining from './handlers/updateTimeRemaining';
|
|
|
|
import handleBreakoutClosed from './handlers/breakoutClosed';
|
2019-05-01 03:24:04 +08:00
|
|
|
import joinedUsersChanged from './handlers/joinedUsersChanged';
|
2022-04-12 20:50:19 +08:00
|
|
|
import userBreakoutChanged from '/imports/api/breakouts/server/handlers/userBreakoutChanged';
|
2016-11-14 19:57:10 +08:00
|
|
|
|
2021-12-02 22:05:42 +08:00
|
|
|
RedisPubSub.on('BreakoutRoomsListEvtMsg', handleBreakoutRoomsList);
|
2017-10-12 05:25:18 +08:00
|
|
|
RedisPubSub.on('BreakoutRoomJoinURLEvtMsg', handleBreakoutJoinURL);
|
|
|
|
RedisPubSub.on('BreakoutRoomsTimeRemainingUpdateEvtMsg', handleUpdateTimeRemaining);
|
|
|
|
RedisPubSub.on('BreakoutRoomEndedEvtMsg', handleBreakoutClosed);
|
2019-05-01 03:24:04 +08:00
|
|
|
RedisPubSub.on('UpdateBreakoutUsersEvtMsg', joinedUsersChanged);
|
2022-04-12 20:50:19 +08:00
|
|
|
RedisPubSub.on('ChangeUserBreakoutEvtMsg', userBreakoutChanged);
|