Skip to main content

gameModelSetSessionTurn

Set or clear the session's current-turn user, for turn-based play (authority enforced by the service). Pass userId null to clear the turn. Requires a valid token.

gameModelSetSessionTurn(
input: SetSessionTurnInput!
): GmSession!

Arguments

gameModelSetSessionTurn.input ● SetSessionTurnInput! non-null input

The app, the session id, and the user whose turn it now is (null clears it).

Type

GmSession object

A runtime session: an isolated instance scope (e.g. a match or room) for containers.