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

11 lines
509 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2016-10-21 21:21:09 +08:00
import handlePollStarted from './handlers/pollStarted';
2017-10-12 08:33:57 +08:00
import handlePollStopped from './handlers/pollStopped';
import handlePollPublished from './handlers/pollPublished';
2016-10-21 21:21:09 +08:00
import handleUserVoted from './handlers/userVoted';
2017-10-12 08:33:57 +08:00
RedisPubSub.on('PollShowResultEvtMsg', handlePollPublished);
RedisPubSub.on('PollStartedEvtMsg', handlePollStarted);
RedisPubSub.on('PollStoppedEvtMsg', handlePollStopped);
RedisPubSub.on('PollUpdatedEvtMsg', handleUserVoted);