Updated appContext CLIENT_START_TIMESTAMP value to include sessionid

This commit is contained in:
Dev 2024-10-22 13:41:33 +01:00
parent 9eba62d5e2
commit 44fac53e97
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@ export enum ContextVariableType {
SESSION_ID = 0,
/** Currently acive raid information */
RAID_CONFIGURATION = 1,
/** Timestamp when client first connected */
/** SessionID + Timestamp when client first connected, has _ between values */
CLIENT_START_TIMESTAMP = 2,
/** When player is loading into map and loot is requested */
REGISTER_PLAYER_REQUEST = 3,

View File

@ -95,7 +95,10 @@ export class GameController {
*/
public gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void {
// Store client start time in app context
this.applicationContext.addValue(ContextVariableType.CLIENT_START_TIMESTAMP, startTimeStampMS);
this.applicationContext.addValue(
ContextVariableType.CLIENT_START_TIMESTAMP,
`${sessionID}_${startTimeStampMS}`,
);
this.profileActivityService.setActivityTimestamp(sessionID);