bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/eventHandlers.js

11 lines
519 B
JavaScript
Raw Normal View History

2017-06-29 04:37:45 +08:00
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);