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

ReadEventsResult

ReadEventsResult<Handle> = readonly EmittedEvent<Handle>[] & object

What readEvents returns: the events, oldest first, and gap, true where the read may have missed some: it came more than maximumUnreadSteps after the system’s last read, or the page fell past maximumHeldEvents behind the room. After a gap, read the state the events describe, such as whether a trigger is occupied, rather than trust that a missed exit never happened.

Name Type
gap boolean
Type Parameter
Handle