bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/chat/server/eventHandlers.js
2017-07-11 13:57:54 -03:00

8 lines
357 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis2x';
import handleChatMessage from './handlers/chatMessage';
import handleChatHistory from './handlers/chatHistory';
RedisPubSub.on('GetChatHistoryRespMsg', handleChatHistory);
RedisPubSub.on('SendPublicMessageEvtMsg', handleChatMessage);
RedisPubSub.on('SendPrivateMessageEvtMsg', handleChatMessage);