2021-10-16 03:07:13 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
|
|
|
import groupCreated from './handlers/groupCreated';
|
|
|
|
import padCreated from './handlers/padCreated';
|
|
|
|
import sessionCreated from './handlers/sessionCreated';
|
|
|
|
import padUpdated from './handlers/padUpdated';
|
|
|
|
import padContent from './handlers/padContent';
|
|
|
|
import padTail from './handlers/padTail';
|
|
|
|
import sessionDeleted from './handlers/sessionDeleted';
|
2022-09-25 04:59:29 +08:00
|
|
|
import captureSharedNotes from './handlers/captureSharedNotes';
|
2022-10-24 21:11:28 +08:00
|
|
|
import padPinned from './handlers/padPinned';
|
2021-10-16 03:07:13 +08:00
|
|
|
|
|
|
|
RedisPubSub.on('PadGroupCreatedRespMsg', groupCreated);
|
|
|
|
RedisPubSub.on('PadCreatedRespMsg', padCreated);
|
|
|
|
RedisPubSub.on('PadSessionCreatedRespMsg', sessionCreated);
|
|
|
|
RedisPubSub.on('PadUpdatedEvtMsg', padUpdated);
|
|
|
|
RedisPubSub.on('PadContentEvtMsg', padContent);
|
|
|
|
RedisPubSub.on('PadTailEvtMsg', padTail);
|
|
|
|
RedisPubSub.on('PadSessionDeletedEvtMsg', sessionDeleted);
|
2022-09-25 04:59:29 +08:00
|
|
|
RedisPubSub.on('CaptureSharedNotesReqEvtMsg', captureSharedNotes);
|
2022-10-24 21:11:28 +08:00
|
|
|
RedisPubSub.on('PadPinnedEvtMsg', padPinned);
|