Home > @world-wide-lab/client > Session
Session class
A world-wide-lab session, corresponding to a person's participation in a study. Use this class to capture responses.
Signature:
typescript
export declare class Session extends _ClientModel
Extends: _ClientModel
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
(Optional) | |||
string |
Methods
Method | Modifiers | Description |
---|---|---|
Add a score to a leaderboard. | ||
Finish the session. This will mark the session as finished. | ||
Retrieve public meta-data for a session | ||
Create a new Response. | ||
Store the participantId of the participant that is doing this session. | ||
Update the session's meta-data. | ||
updateLeaderboardScore(leaderboardId, leaderboardScoreId, leaderboardScoreData) | Update a score on a leaderboard. |