2017-10-12 10:00:28 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2018-04-14 03:26:58 +08:00
|
|
|
import { processForHTML5ServerOnly } 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';
|
2018-02-07 00:23:51 +08:00
|
|
|
import handleGetVoiceUsers from './handlers/getVoiceUsers';
|
2018-08-16 00:45:00 +08:00
|
|
|
import handleVoiceUsers from './handlers/voiceUsers';
|
2018-09-29 05:32:52 +08:00
|
|
|
import handleMeetingMuted from './handlers/meetingMuted';
|
2021-04-09 10:58:13 +08:00
|
|
|
import handleFloorChange from './handlers/floorChanged';
|
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-14 03:26:58 +08:00
|
|
|
RedisPubSub.on('GetVoiceUsersMeetingRespMsg', processForHTML5ServerOnly(handleGetVoiceUsers));
|
2018-08-16 00:45:00 +08:00
|
|
|
RedisPubSub.on('SyncGetVoiceUsersRespMsg', handleVoiceUsers);
|
2018-09-29 05:32:52 +08:00
|
|
|
RedisPubSub.on('MeetingMutedEvtMsg', handleMeetingMuted);
|
2021-04-09 10:58:13 +08:00
|
|
|
RedisPubSub.on('AudioFloorChangedEvtMsg', handleFloorChange);
|