Interface AirshipServerConfig

Configuration for an Airship server.

interface AirshipServerConfig {
    accessMode?: AirshipServerAccessMode;
    allowedUserIds?: string[];
    maxPlayers?: string;
    region?: string;
    sceneId?: string;
}

Properties

The access mode of the server. Defaults to OPEN on the default scene, and DIRECT_JOIN on any other scene.

allowedUserIds?: string[]

Only allow the players in this list to join the server. Forces accessMode to CLOSED.

maxPlayers?: string

The max players setting for the server. If not set, the default for the game is used. You can change the default for your game on https://create.airship.gg

region?: string

The region the game server should be started in. Defaults to the same region as the server that makes the create request.

sceneId?: string

The scene the server will start on. Defaults to the scene provided during deployment.