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

15 lines
1014 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2017-10-12 08:40:51 +08:00
import handlePresentationAdded from './handlers/presentationAdded';
2016-11-12 03:02:46 +08:00
import handlePresentationInfoReply from './handlers/presentationInfoReply';
2017-10-12 08:40:51 +08:00
import handlePresentationRemove from './handlers/presentationRemove';
import handlePresentationCurrentSet from './handlers/presentationCurrentSet';
import handlePresentationConversionUpdate from './handlers/presentationConversionUpdate';
2016-11-12 03:02:46 +08:00
2017-10-12 08:40:51 +08:00
RedisPubSub.on('SyncGetPresentationInfoRespMsg', handlePresentationInfoReply);
RedisPubSub.on('PresentationPageGeneratedEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationPageCountErrorEvtMsg', handlePresentationConversionUpdate);
2017-10-12 08:40:51 +08:00
RedisPubSub.on('PresentationConversionUpdateEvtMsg', handlePresentationConversionUpdate);
RedisPubSub.on('PresentationConversionCompletedEvtMsg', handlePresentationAdded);
RedisPubSub.on('RemovePresentationEvtMsg', handlePresentationRemove);
RedisPubSub.on('SetCurrentPresentationEvtMsg', handlePresentationCurrentSet);