tons of cursor-shit cleaning, finished implementing cnxId in observer

This commit is contained in:
STEINNI
2026-06-27 17:24:41 +00:00
parent 4c9e989bda
commit a1dba5060a
28 changed files with 213 additions and 224 deletions
+3
View File
@@ -1,4 +1,5 @@
import redis from 'redis'
import os from 'node:os'
export class RedisConnexion {
@@ -12,6 +13,8 @@ export class RedisConnexion {
this.senderId = options.senderId ?? null
this.actionsReply = options.actionsReply ?? null
this.cnxId = os.hostname() + ':' + process.pid + ':' + Date.now() + ':' + Math.random().toString(36).substring(2, 15)
if(this.meshModule?.actionHandlers) Object.assign(this, this.meshModule.actionHandlers)
this.afterLogin = this.meshModule?.afterLogin ?? []