2017-11-18 02:55:59 +08:00
|
|
|
import RedisPubSub from '/imports/startup/server/redis';
|
2017-09-01 23:26:57 +08:00
|
|
|
import handleUserSharedHtml5Webcam from './handlers/userSharedHtml5Webcam';
|
|
|
|
import handleUserUnsharedHtml5Webcam from './handlers/userUnsharedHtml5Webcam';
|
2021-04-09 10:58:13 +08:00
|
|
|
import handleFloorChanged from './handlers/floorChanged';
|
2021-11-29 21:44:14 +08:00
|
|
|
import handlePinnedChanged from './handlers/userPinChanged';
|
2022-02-09 23:50:01 +08:00
|
|
|
import handleWebcamSync from './handlers/webcamSync';
|
2017-09-01 23:26:57 +08:00
|
|
|
|
2017-09-19 21:53:27 +08:00
|
|
|
RedisPubSub.on('UserBroadcastCamStartedEvtMsg', handleUserSharedHtml5Webcam);
|
|
|
|
RedisPubSub.on('UserBroadcastCamStoppedEvtMsg', handleUserUnsharedHtml5Webcam);
|
2021-04-09 10:58:13 +08:00
|
|
|
RedisPubSub.on('AudioFloorChangedEvtMsg', handleFloorChanged);
|
2021-11-29 21:44:14 +08:00
|
|
|
RedisPubSub.on('UserPinStateChangedEvtMsg', handlePinnedChanged);
|
2022-02-09 23:50:01 +08:00
|
|
|
RedisPubSub.on('SyncGetWebcamInfoRespMsg', handleWebcamSync);
|