Skip to main content

FleetSession

A fleet session: one realtime session an organization's game server opens for itself, in which it carries the players who are on it. A player still signs in once, when they join (mintManagedPlayerToken); moving to another of the organization's servers is that server starting to carry them, with no call to this API. The session's token never goes to a player's device.

type FleetSession {
token: String!
gameTokenId: BigInt!
appId: BigInt!
expiresAt: DateTime!
maxPlayers: Int!
server: ServerStatus!
}

Fields​

FleetSession.token ● String! non-null scalar​

The session's token: 64 characters, the key the game server signs the session's realtime messages with. Keep it on the server. It is not a bearer for this API.

FleetSession.gameTokenId ● BigInt! non-null scalar​

The token's id (BigInt as a decimal string): what the session's own realtime messages carry, and what refreshFleetSession and closeFleetSession name it by.

FleetSession.appId ● BigInt! non-null scalar​

The app the session is in (BigInt as a decimal string).

FleetSession.expiresAt ● DateTime! non-null scalar​

When the session ends unless it is refreshed first: 24 hours after it was opened or last refreshed.

FleetSession.maxPlayers ● Int! non-null scalar​

How many players the session may carry at once: the organization's maxFleetPlayers when the session was opened. A carry past it is refused, so a game with more players on one server opens a second session or asks for a higher number.

FleetSession.server ● ServerStatus! non-null object​

The realtime server to connect the session to (ip4 and clientPort), in the datacenter that holds the app. The token is authorized there and nowhere else.

Returned By​

openFleetSession mutation ● refreshFleetSession mutation