Phaser API Documentation

  Version: 
getConnectedScores()

Description:

Retrieves a set of leaderboard entries, based on the current player's connected players (including the current player), ordered by local rank within the set of connected players.

The data is requested in an async call, so the result isn't available immediately.

When the call completes this Leaderboard will emit the getconnectedscores event along with an array of LeaderboardScore entries and the name of the Leaderboard.

Returns:
Description:

This Leaderboard instance.

Since: 3.16.0
Source: src//Leaderboard.js (Line 271)