Module awareness

Module awareness 

Source
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_all and removed by remove_outdated.
  • Import/export via encode/apply for 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§

AwarenessDeprecated
Awareness is a structure that tracks the ephemeral state of peers.
EphemeralStore
EphemeralStore is a structure that tracks ephemeral key-value state across peers.
EphemeralStoreEvent
PeerInfo

Enums§

EphemeralEventTrigger

Type Aliases§

EphemeralSubscriber
LocalEphemeralCallback