12 lines
803 B
JavaScript
12 lines
803 B
JavaScript
import RedisPubSub from '/imports/startup/server/redis';
|
|
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
|
import handleGuestApproved from './handlers/guestApproved';
|
|
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
|
|
import handleGuestWaitingLeft from './handlers/guestWaitingLeft';
|
|
import handlePrivateGuestLobbyMessageChanged from './handlers/privateGuestLobbyMessageChanged'
|
|
|
|
RedisPubSub.on('GuestWaitingLeftEvtMsg', handleGuestWaitingLeft);
|
|
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', processForHTML5ServerOnly(handleGuestsWaitingForApproval));
|
|
RedisPubSub.on('GuestsWaitingApprovedEvtMsg', processForHTML5ServerOnly(handleGuestApproved));
|
|
RedisPubSub.on('PrivateGuestLobbyMsgChangedEvtMsg', handlePrivateGuestLobbyMessageChanged);
|