connectedPlayers

open suspend override fun connectedPlayers(): List<String>(source)

Retrieves the unique identifiers of the current players associated with (and therefore connected to) this instance. The return value is guaranteed to match the value set within the SDK, even if the value was not yet synchronized with the Kubernetes resource.

The specific player tracking APIs of the AgonesSdk will eventually be superseded by the arbitrary Counts and Lists that cover a broader use-case and offer similar interfaces for tracking.

Return

A list of the unique identifiers of the currently connected players of this instance.

See also