Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ConnectionTrait

const ConnectionTrait: CoreTrait<{ holdEndsTick: number; state: ConnectionState; }>

Whether a player’s connection holds: ConnectionState.Connected, or ConnectionState.Held with the tick the hold ends on. Every page receives it, so a game leaves a held player out of a vote or greys her out. The core writes it; read it with readTrait.