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

sendMatchReady

sendMatchReady(world, isReady?): Promise<SettledCommandResult<CommandHandle<{ isReady: BooleanCommandField; serial: NumberCommandField; }, NotWaiting | NotInMatch, undefined, false, false, "ready", false, true>>>

Asks the room to mark this page’s player ready, or not, for the player’s match’s readyCheck.

Parameter Type Default value
world World undefined
isReady boolean true

Promise<SettledCommandResult<CommandHandle<{ isReady: BooleanCommandField; serial: NumberCommandField; }, NotWaiting | NotInMatch, undefined, false, false, "ready", false, true>>>