bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/eventHandlers.js
2017-10-11 18:09:35 -07:00

11 lines
519 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis2x';
import handlePollStarted from './handlers/pollStarted';
import handlePollStopped from './handlers/pollStopped';
import handlePollPublished from './handlers/pollPublished';
import handleUserVoted from './handlers/userVoted';
RedisPubSub.on('PollShowResultEvtMsg', handlePollPublished);
RedisPubSub.on('PollStartedEvtMsg', handlePollStarted);
RedisPubSub.on('PollStoppedEvtMsg', handlePollStopped);
RedisPubSub.on('UserRespondedToPollEvtMsg', handleUserVoted);