a lot of refactos
This commit is contained in:
@@ -19,5 +19,18 @@ export const eventHandlers = {
|
||||
bigBang(msg, chan) {
|
||||
this.gpsSrv?.onBigBang(msg.payload ?? {})
|
||||
},
|
||||
simulationPaused(msg, chan) {
|
||||
this.gpsSrv?.onSimulationPaused(msg.payload ?? {})
|
||||
},
|
||||
simulationResumed(msg, chan) {
|
||||
this.gpsSrv?.onSimulationResumed(msg.payload ?? {})
|
||||
},
|
||||
simulationStopped(msg, chan) {
|
||||
const srv = this.gpsSrv
|
||||
if(!srv) return
|
||||
srv.onSimulationStopped(msg.payload ?? {}).catch(err => {
|
||||
console.error(`[${this.redisId}] simulationStopped failed:`, err)
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user