f13217607e
This commit makes the messages of the timer feature to be proxied by akka-apps and also adds a timer model that is updated based on these messages. Moving the timer panel opening logic to the timer button component in the navigation panel was a consequence of these changes.
21 lines
1.1 KiB
JavaScript
21 lines
1.1 KiB
JavaScript
import RedisPubSub from '/imports/startup/server/redis';
|
|
import handleTimerActivated from './handlers/timerActivated';
|
|
import handleTimerDeactivated from './handlers/timerDeactivated';
|
|
import handleTimerStarted from './handlers/timerStarted';
|
|
import handleTimerStopped from './handlers/timerStopped';
|
|
import handleTimerSwitched from './handlers/timerSwitched';
|
|
import handleTimerSet from './handlers/timerSet';
|
|
import handleTimerReset from './handlers/timerReset';
|
|
import handleTimerEnded from './handlers/timerEnded';
|
|
import handleTrackSet from './handlers/trackSet';
|
|
|
|
RedisPubSub.on('ActivateTimerRespMsg', handleTimerActivated);
|
|
RedisPubSub.on('DeactivateTimerRespMsg', handleTimerDeactivated);
|
|
RedisPubSub.on('StartTimerRespMsg', handleTimerStarted);
|
|
RedisPubSub.on('StopTimerRespMsg', handleTimerStopped);
|
|
RedisPubSub.on('SwitchTimerRespMsg', handleTimerSwitched);
|
|
RedisPubSub.on('SetTimerRespMsg', handleTimerSet);
|
|
RedisPubSub.on('ResetTimerRespMsg', handleTimerReset);
|
|
RedisPubSub.on('TimerEndedEvtMsg', handleTimerEnded);
|
|
RedisPubSub.on('SetTrackRespMsg', handleTrackSet);
|