{
roomId: string; // The ID of the room to check
plyrId: string; // The player ID to check
}
{
isJoined: boolean; // true if player has joined the room, false otherwise
}
const timestamp = Date.now().toString();
const hmac = generateHmacSignature(timestamp, {}, secretKey);
const response = await axios.get(apiEndpoint + '/game/isJoined?roomId=' + roomId + '&plyrId=' + plyrId, {
headers: {
apikey: apiKey,
signature: hmac,
timestamp: timestamp
}
});
const isJoined = response.data.data.isJoined;