bigbluebutton-Github/bigbluebutton-html5/imports/api/group-chat-msg/server/eventHandlers.js

13 lines
781 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
import handleGroupChatMsgBroadcast from './handlers/groupChatMsgBroadcast';
import handleClearPublicGroupChat from './handlers/clearPublicGroupChat';
2019-07-31 10:37:50 +08:00
import handleUserTyping from './handlers/userTyping';
import handleSyncGroupChatMsg from './handlers/syncGroupsChat';
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
RedisPubSub.on('GetGroupChatMsgsRespMsg', processForHTML5ServerOnly(handleSyncGroupChatMsg));
RedisPubSub.on('GroupChatMessageBroadcastEvtMsg', handleGroupChatMsgBroadcast);
RedisPubSub.on('ClearPublicChatHistoryEvtMsg', handleClearPublicGroupChat);
RedisPubSub.on('SyncGetGroupChatMsgsRespMsg', handleSyncGroupChatMsg);
2019-07-31 10:37:50 +08:00
RedisPubSub.on('UserTypingEvtMsg', handleUserTyping);