2018-03-10 02:42:14 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
|
|
|
import handleGroupChats from './handlers/groupChats';
|
|
|
|
import handleGroupChatCreated from './handlers/groupChatCreated';
|
|
|
|
import handleGroupChatDestroyed from './handlers/groupChatDestroyed';
|
2019-03-16 02:37:56 +08:00
|
|
|
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
2018-03-10 02:42:14 +08:00
|
|
|
|
2019-03-16 02:37:56 +08:00
|
|
|
RedisPubSub.on('GetGroupChatsRespMsg', processForHTML5ServerOnly(handleGroupChats));
|
2018-03-10 02:42:14 +08:00
|
|
|
RedisPubSub.on('GroupChatCreatedEvtMsg', handleGroupChatCreated);
|
|
|
|
RedisPubSub.on('GroupChatDestroyedEvtMsg', handleGroupChatDestroyed);
|
2018-08-09 00:42:45 +08:00
|
|
|
RedisPubSub.on('SyncGetGroupChatsRespMsg', handleGroupChats);
|