2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2018-04-14 03:26:58 +08:00
|
|
|
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
2016-11-19 01:35:28 +08:00
|
|
|
import handleWhiteboardCleared from './handlers/whiteboardCleared';
|
2022-05-04 20:40:56 +08:00
|
|
|
import handleWhiteboardDelete from './handlers/whiteboardDelete';
|
2017-10-12 08:52:57 +08:00
|
|
|
import handleWhiteboardSend from './handlers/whiteboardSend';
|
|
|
|
import handleWhiteboardAnnotations from './handlers/whiteboardAnnotations';
|
2016-11-19 01:35:28 +08:00
|
|
|
|
2017-10-12 08:52:57 +08:00
|
|
|
RedisPubSub.on('ClearWhiteboardEvtMsg', handleWhiteboardCleared);
|
2022-05-04 20:40:56 +08:00
|
|
|
RedisPubSub.on('DeleteWhiteboardAnnotationsEvtMsg', handleWhiteboardDelete);
|
|
|
|
RedisPubSub.on('SendWhiteboardAnnotationsEvtMsg', handleWhiteboardSend);
|
2018-04-14 03:26:58 +08:00
|
|
|
RedisPubSub.on('GetWhiteboardAnnotationsRespMsg', processForHTML5ServerOnly(handleWhiteboardAnnotations));
|