Skip to main content
The Deno 2 Release Candidate is here
Learn more
method ApplicationContext.prototype.getLatestValue
import { ApplicationContext } from "https://deno.land/x/sptaki@1.2.0/context/ApplicationContext.d.ts";

Called like:

const registerPlayerInfo = this.applicationContext.getLatestValue(ContextVariableType.REGISTER_PLAYER_REQUEST).getValue<IRegisterPlayerRequestData>();

const activePlayerSessionId = this.applicationContext.getLatestValue(ContextVariableType.SESSION_ID).getValue<string>();

const matchInfo = this.applicationContext.getLatestValue(ContextVariableType.RAID_CONFIGURATION).getValue<IGetRaidConfigurationRequestData>();