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';
|
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));
|