2016-10-22 00:27:47 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
|
|
|
import handleMeetingDestruction from './handlers/meetingDestruction';
|
|
|
|
import handleRecordingStatusChange from './handlers/recordingStatusChange';
|
|
|
|
import handlePermissionSettingsChange from './handlers/permissionSettingsChange';
|
|
|
|
import handleMeetingCreation from './handlers/meetingCreation';
|
|
|
|
import handleGetAllMettings from './handlers/getAllMeetings';
|
2016-11-03 21:33:14 +08:00
|
|
|
import handleStunTurnReply from './handlers/stunTurnReply';
|
2016-10-22 00:27:47 +08:00
|
|
|
|
|
|
|
RedisPubSub.on('meeting_destroyed_event', handleMeetingDestruction);
|
|
|
|
RedisPubSub.on('meeting_ended_message', handleMeetingDestruction);
|
|
|
|
RedisPubSub.on('end_and_kick_all_message', handleMeetingDestruction);
|
|
|
|
RedisPubSub.on('disconnect_all_users_message', handleMeetingDestruction);
|
|
|
|
RedisPubSub.on('recording_status_changed_message', handleRecordingStatusChange);
|
|
|
|
RedisPubSub.on('new_permission_settings', handlePermissionSettingsChange);
|
|
|
|
RedisPubSub.on('meeting_created_message', handleMeetingCreation);
|
|
|
|
RedisPubSub.on('get_all_meetings_reply_message', handleGetAllMettings);
|
2016-11-03 21:33:14 +08:00
|
|
|
RedisPubSub.on('send_stun_turn_info_reply_message', handleStunTurnReply);
|