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

closeKey

closeKey(authority, handle): void

Closes the key handle names, in this call: its final read, then the removal of every entity registered to it, so nothing after can write it, and KeyClosedEvent. The room’s next checkpoint, due at once, commits its last record and releases it. Closing a key another room asked for passes it there. On a key still opening, cancels the open, answered KeyRefusedEvent cancelled. A key this room does not hold is refused.

Parameter Type
authority Authority
handle KeyedSaveHandle

void