bigbluebutton-Github/bigbluebutton-html5/imports/api/1.1/shapes/server/eventHandlers.js

11 lines
600 B
JavaScript
Raw Normal View History

2016-11-19 01:35:28 +08:00
import RedisPubSub from '/imports/startup/server/redis';
import handleWhiteboardGetReply from './handlers/whiteboardGetReply';
import handleWhiteboardSend from './handlers/whiteboardSend';
import handleWhiteboardCleared from './handlers/whiteboardCleared';
import handleWhiteboardUndo from './handlers/whiteboardUndo';
RedisPubSub.on('get_whiteboard_shapes_reply', handleWhiteboardGetReply);
RedisPubSub.on('send_whiteboard_shape_message', handleWhiteboardSend);
RedisPubSub.on('whiteboard_cleared_message', handleWhiteboardCleared);
RedisPubSub.on('undo_whiteboard_request', handleWhiteboardUndo);