Is Joined Game Room

Check if a player has joined a game room

Endpoint: /game/isJoined Method: GET

{
    roomId: string; // The ID of the room to check
    plyrId: string; // The player ID to check
}

Example Usage

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;

Last updated