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

12 lines
733 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
2016-11-19 01:35:28 +08:00
import handleWhiteboardCleared from './handlers/whiteboardCleared';
import handleWhiteboardDelete from './handlers/whiteboardDelete';
import handleWhiteboardSend from './handlers/whiteboardSend';
import handleWhiteboardAnnotations from './handlers/whiteboardAnnotations';
2016-11-19 01:35:28 +08:00
RedisPubSub.on('ClearWhiteboardEvtMsg', handleWhiteboardCleared);
RedisPubSub.on('DeleteWhiteboardAnnotationsEvtMsg', handleWhiteboardDelete);
RedisPubSub.on('SendWhiteboardAnnotationsEvtMsg', handleWhiteboardSend);
RedisPubSub.on('GetWhiteboardAnnotationsRespMsg', processForHTML5ServerOnly(handleWhiteboardAnnotations));