bigbluebutton-Github/bigbluebutton-html5/imports/api/1.1/chat/server/eventHandlers.js
2017-06-19 08:57:32 -03:00

8 lines
358 B
JavaScript

import RedisPubSub from '/imports/startup/server/redis';
import handleChatMessage from './handlers/chatMessage';
import handleChatHistory from './handlers/chatHistory';
RedisPubSub.on('get_chat_history_reply', handleChatHistory);
RedisPubSub.on('send_public_chat_message', handleChatMessage);
RedisPubSub.on('send_private_chat_message', handleChatMessage);