Expand description
Ephemeral presence utilities.
EphemeralStore is the recommended API: a timestamped, last-write-wins key-value
store for transient presence data (cursors, selections, etc.). It supports:
- Per-key timeouts: expired entries are skipped by
encode/encode_alland removed byremove_outdated. - Import/export via
encode/applyfor syncing between peers. - Subscriptions for both local updates (raw bytes to send) and merged updates.
The legacy Awareness type remains for backward compatibility but is deprecated in
favor of EphemeralStore.
Structs§
- Awareness
Deprecated Awarenessis a structure that tracks the ephemeral state of peers.- Ephemeral
Store EphemeralStoreis a structure that tracks ephemeral key-value state across peers.- Ephemeral
Store Event - Peer
Info