Observes room presence frames. from is the relay's server-owned sender
id for the originating connection — an opaque per-sender key, not the
remote clientId. Handlers survive credential rebuilds: they are attached
to every client the manager creates. Returns unsubscribe.
Observes presence departures (a sender's connection closed). Same from
key and rebuild semantics as onPresence. Returns unsubscribe.
Publishes a local layer removal; same offline semantics as upsert.
Publishes a local layer definition edit. While no client is connected
(between rebuilds) the edit is recorded in the manager's ledger and
delivered by the re-push that follows the next authoritative snapshot.
Throws when the layers option was not configured.
Sends ephemeral presence data to the room. Presence is fire-and-forget:
while the connection is not live the data is DROPPED, never queued —
stale presence (a laser trail, a cursor) must not replay after a
reconnect. Presence never enters the durable operation queue.
Cancels timers, listeners, the client, and the transport, and invalidates
any in-flight resolveUrl result. A stopped connection never reconnects.
The hub's
unsupportedreply reason; undefined unless the hub sent one before closing.