bigbluebutton-Github/bigbluebutton-html5/imports/api/voice-users/server/eventHandlers.js

14 lines
805 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
2018-04-12 21:41:32 +08:00
import { skipFlashDirectEvent } from '/imports/api/common/server/helpers';
2017-08-01 03:36:41 +08:00
import handleJoinVoiceUser from './handlers/joinVoiceUser';
import handleLeftVoiceUser from './handlers/leftVoiceUser';
import handleTalkingVoiceUser from './handlers/talkingVoiceUser';
import handleMutedVoiceUser from './handlers/mutedVoiceUser';
import handleGetVoiceUsers from './handlers/getVoiceUsers';
2017-08-01 03:36:41 +08:00
RedisPubSub.on('UserLeftVoiceConfToClientEvtMsg', handleLeftVoiceUser);
RedisPubSub.on('UserJoinedVoiceConfToClientEvtMsg', handleJoinVoiceUser);
RedisPubSub.on('UserTalkingVoiceEvtMsg', handleTalkingVoiceUser);
RedisPubSub.on('UserMutedVoiceEvtMsg', handleMutedVoiceUser);
2018-04-12 21:41:32 +08:00
RedisPubSub.on('GetVoiceUsersMeetingRespMsg', skipFlashDirectEvent(handleGetVoiceUsers));