2019-02-27 01:08:15 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2019-04-05 21:52:13 +08:00
|
|
|
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
2019-02-27 01:08:15 +08:00
|
|
|
import handleGuestApproved from './handlers/guestApproved';
|
|
|
|
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
|
2020-01-15 23:01:28 +08:00
|
|
|
import handleGuestWaitingLeft from './handlers/guestWaitingLeft';
|
2022-01-12 22:10:30 +08:00
|
|
|
import handlePrivateGuestLobbyMessageChanged from './handlers/privateGuestLobbyMessageChanged'
|
2019-02-27 01:08:15 +08:00
|
|
|
|
2020-01-15 23:01:28 +08:00
|
|
|
RedisPubSub.on('GuestWaitingLeftEvtMsg', handleGuestWaitingLeft);
|
2019-04-05 21:52:13 +08:00
|
|
|
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', processForHTML5ServerOnly(handleGuestsWaitingForApproval));
|
|
|
|
RedisPubSub.on('GuestsWaitingApprovedEvtMsg', processForHTML5ServerOnly(handleGuestApproved));
|
2022-01-12 22:10:30 +08:00
|
|
|
RedisPubSub.on('PrivateGuestLobbyMsgChangedEvtMsg', handlePrivateGuestLobbyMessageChanged);
|