bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/eventHandlers.js
2016-10-21 15:11:28 -02:00

10 lines
463 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis';
import handlePollStopped from './handlers/pollStopped';
import handlePollStarted from './handlers/pollStarted';
import handleUserVoted from './handlers/userVoted';
RedisPubSub.on('poll_show_result_message', handlePollStopped);
RedisPubSub.on('poll_started_message', handlePollStarted);
RedisPubSub.on('poll_stopped_message', handlePollStopped);
RedisPubSub.on('user_voted_poll_message', handleUserVoted);