Skip to main content

gameModelCreateSession

Create a runtime session: an isolated instance scope for containers (e.g. a match, room, or save). Subject to the app's session creation policy. The caller becomes the creator and a participant. Requires a valid token.

gameModelCreateSession(
input: CreateSessionInput!
): GmSession!

Arguments

gameModelCreateSession.input ● CreateSessionInput! non-null input

The app, an optional name and metadata, and optional initial participant user ids.

Type

GmSession object

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