tons of cursor-shit cleaning, finished implementing cnxId in observer
This commit is contained in:
@@ -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 ?? []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user