FakeWorldTerminal extension

The terminal steps of the world: events and the state changes that end sessions.

on

Methods

endTerminalSession(FakeTerminalSession s, String reason) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

Ends s with reason: state closed, the event, and the open stream closed with 4100 and the reason (24 8.3, 10.3).
grantHostAccess(String userId, String hostId) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

userId got the capability terminal on host hostId: the personal access.changed with the host in added (04 8.2).
hostUpdated(FakeHost h, {bool keyChanged = false}) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

Raises the version of h and appends host.updated (04 2.1); keyChanged after a re-pairing (24 3.3).
hostViewers(FakeHost h) → Set<String>

Available on FakeWorld, provided by the FakeWorldTerminal extension

The people who see h (07 2.12): owners, the assignee and the holders of a valid grant terminal on it.
revokeHostAccess(String userId, String hostId) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

userId lost the capability terminal on host hostId (04 8.2, 24 8.3): the personal access.changed with the host in removed, and every open session of the person there ends with access_revoked.
setHostConnected(String hostId, {required bool connected}) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

Sets the connection of host hostId and publishes the ephemeral host.presence_changed to the devices of everyone who sees the host.
terminalSessionChanged(FakeTerminalSession s) → void

Available on FakeWorld, provided by the FakeWorldTerminal extension

Appends the personal terminal_session.changed of s (04 2.1, 24 10.2).