tons of cursor-shit cleaning, finished implementing cnxId in observer
This commit is contained in:
@@ -9,7 +9,7 @@ export const dispatchMessage = createDispatchMessage({
|
||||
eventHandlers,
|
||||
actionRules(redisCnx) {
|
||||
const observer = redisCnx.config.observer ?? {}
|
||||
const arenaChannel = observer.bus?.arena?.actionsChannel
|
||||
const arenaChannel = observer.arenaActionsChannel
|
||||
return({
|
||||
channels: arenaChannel ? [arenaChannel] : [],
|
||||
})
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
|
||||
export const eventHandlers = {
|
||||
'arena:lifecycle': {
|
||||
onYourMarks(msg, chan) {
|
||||
onYourMarks(msg, chan, sender, cnxId) {
|
||||
this.observerSrv?.onYourMarks()
|
||||
},
|
||||
bigBang(msg, chan) {
|
||||
bigBang(msg, chan, sender, cnxId) {
|
||||
this.observerSrv?.onBigBang()
|
||||
},
|
||||
simulationStopped(msg, chan) {
|
||||
simulationStopped(msg, chan, sender, cnxId) {
|
||||
this.observerSrv?.onSimulationStopped(msg.payload ?? {})
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user