bigbluebutton-Github/bigbluebutton-html5/imports/api/1.1/polls/server/eventHandlers.js
2017-06-19 08:57:32 -03: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);