Updated appContext CLIENT_START_TIMESTAMP
value to include sessionid
This commit is contained in:
parent
9eba62d5e2
commit
44fac53e97
@ -3,7 +3,7 @@ export enum ContextVariableType {
|
|||||||
SESSION_ID = 0,
|
SESSION_ID = 0,
|
||||||
/** Currently acive raid information */
|
/** Currently acive raid information */
|
||||||
RAID_CONFIGURATION = 1,
|
RAID_CONFIGURATION = 1,
|
||||||
/** Timestamp when client first connected */
|
/** SessionID + Timestamp when client first connected, has _ between values */
|
||||||
CLIENT_START_TIMESTAMP = 2,
|
CLIENT_START_TIMESTAMP = 2,
|
||||||
/** When player is loading into map and loot is requested */
|
/** When player is loading into map and loot is requested */
|
||||||
REGISTER_PLAYER_REQUEST = 3,
|
REGISTER_PLAYER_REQUEST = 3,
|
||||||
|
@ -95,7 +95,10 @@ export class GameController {
|
|||||||
*/
|
*/
|
||||||
public gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void {
|
public gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void {
|
||||||
// Store client start time in app context
|
// 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);
|
this.profileActivityService.setActivityTimestamp(sessionID);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user