11 lines
582 B
JavaScript
11 lines
582 B
JavaScript
import RedisPubSub from '/imports/startup/server/redis2x';
|
|
import handleJoinVoiceUser from './handlers/joinVoiceUser';
|
|
import handleLeftVoiceUser from './handlers/leftVoiceUser';
|
|
import handleTalkingVoiceUser from './handlers/talkingVoiceUser';
|
|
import handleMutedVoiceUser from './handlers/mutedVoiceUser';
|
|
|
|
RedisPubSub.on('UserLeftVoiceConfToClientEvtMsg', handleLeftVoiceUser);
|
|
RedisPubSub.on('UserJoinedVoiceConfToClientEvtMsg', handleJoinVoiceUser);
|
|
RedisPubSub.on('UserTalkingVoiceEvtMsg', handleTalkingVoiceUser);
|
|
RedisPubSub.on('UserMutedVoiceEvtMsg', handleMutedVoiceUser);
|