Applies a presence payload from from. Non-awareness or malformed payloads
return false untouched, so hosts can feed every presence frame through.
Fires only when getPeers() would return a new reference.
First valid frame from a sender since its discovery entry was last dropped.
Server-authored presence-leave: drops the row AND the discovery entry.
Last-known awareness state per remote sender, keyed by the relay's server-owned
from. Two books are kept deliberately separate:clearedframe, byremove()(the server-authored presence-leave), or by stale expiry.remove()or bystaleMswithout any valid frame.onDiscoverfires when a valid frame arrives from a sender with no entry — at most once per socket lifetime, so a client cycling full → cleared → full cannot make every peer re-announce.getPeers()returns the same array until a visible field or membership changes (a heartbeat carrying identical state is silent), which makes it a validuseSyncExternalStoresnapshot. Remote clocks are never trusted; all timing is local.