cleanup, welcome with proper server time

This commit is contained in:
STEINNI
2026-06-26 21:51:43 +00:00
parent a868caf8c9
commit b551f473b4
3 changed files with 17 additions and 9 deletions
+8 -3
View File
@@ -31,10 +31,15 @@ export class WssConnexion {
}
welcome(){
clearTimeout(this.challengeTimeout)
this.challengeTimeout = null
// clearTimeout(this.challengeTimeout)
// this.challengeTimeout = null
this.cnxState = 'CONNECTED'
if(this.debug) console.log(`Welcome to UUID ${this.uuid}`)
this.send(JSON.stringify({
'action': 'WELCOME',
'cnxId': this.uuid,
'serverTime': Date.now(),
}));
if(this.debug) console.log(`Welcome to UUID ${this.uuid}, server time: ${performance.now()}`)
}
startKeepAlive() {