Class: Player

Player(data, client)

new Player(data, client)

constructor - Player constructor
Parameters:
Name Type Description
data Object The player join data https://kahoot.js.org/enum/LiveEventPlayerJoined
Properties
Name Type Description
cid String The id of the player
name String The name of the player
client Client The client
Source:

Members

active :Boolean

Whether the player is 'active' and can interact with the game
Type:
  • Boolean
Source:

answer :Object

The current answer of the player
Type:
  • Object
Source:
See:

cid :String

The id of the player
Type:
  • String
Source:

client :Client

The client
Type:
Source:

correctCount :Number

The number of correct answers
Type:
  • Number
Source:

incorrectCount :Number

The number of incorrect answers
Type:
  • Number
Source:

name :String

The name of the player
Type:
  • String
Source:

pointsData :Object

The points data for the player
Type:
  • Object
Source:

rank :Number

The rank of the player
Type:
  • Number
Source:

recoveryData

get recoveryData - The recovery data of the player
Source:
See:

team :Array.<String>

The team members of the player
Type:
  • Array.<String>
Source:

unansweredCount :Number

The number of unanswered questions
Type:
  • Number
Source: