2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2017-10-12 08:40:51 +08:00
|
|
|
import handlePresentationAdded from './handlers/presentationAdded';
|
|
|
|
import handlePresentationRemove from './handlers/presentationRemove';
|
|
|
|
import handlePresentationCurrentSet from './handlers/presentationCurrentSet';
|
|
|
|
import handlePresentationConversionUpdate from './handlers/presentationConversionUpdate';
|
2019-02-16 03:45:42 +08:00
|
|
|
import handlePresentationDownloadableSet from './handlers/presentationDownloadableSet';
|
2022-07-20 03:36:00 +08:00
|
|
|
import handlePresentationExport from './handlers/presentationExport';
|
2022-08-24 21:31:20 +08:00
|
|
|
import handlePresentationExportToastUpdate from './handlers/presentationExportToastUpdate';
|
2016-11-12 03:02:46 +08:00
|
|
|
|
2019-10-21 20:33:40 +08:00
|
|
|
RedisPubSub.on('PdfConversionInvalidErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationPageGeneratedEvtMsg', handlePresentationConversionUpdate);
|
2017-11-28 01:44:45 +08:00
|
|
|
RedisPubSub.on('PresentationPageCountErrorEvtMsg', handlePresentationConversionUpdate);
|
2022-09-14 21:33:41 +08:00
|
|
|
RedisPubSub.on('PresentationUploadedFileTimeoutErrorEvtMsg', handlePresentationConversionUpdate);
|
2022-11-23 04:41:57 +08:00
|
|
|
RedisPubSub.on('PresentationHasInvalidMimeTypeErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationConversionUpdateEvtMsg', handlePresentationConversionUpdate);
|
2021-04-21 01:21:12 +08:00
|
|
|
RedisPubSub.on('PresentationUploadedFileTooLargeErrorEvtMsg', handlePresentationConversionUpdate);
|
2017-10-12 08:40:51 +08:00
|
|
|
RedisPubSub.on('PresentationConversionCompletedEvtMsg', handlePresentationAdded);
|
|
|
|
RedisPubSub.on('RemovePresentationEvtMsg', handlePresentationRemove);
|
|
|
|
RedisPubSub.on('SetCurrentPresentationEvtMsg', handlePresentationCurrentSet);
|
2019-02-16 03:45:42 +08:00
|
|
|
RedisPubSub.on('SetPresentationDownloadableEvtMsg', handlePresentationDownloadableSet);
|
2023-04-17 20:04:58 +08:00
|
|
|
RedisPubSub.on('NewPresFileAvailableEvtMsg', handlePresentationExport);
|
2022-08-24 21:31:20 +08:00
|
|
|
RedisPubSub.on('PresAnnStatusEvtMsg', handlePresentationExportToastUpdate);
|