Lightstreamer.Update (Lightstreamer v0.1.0)

Copy Markdown View Source

A single delivered update event for one item of a subscription.

Carries the full merged field state after applying the update, plus the set of fields this particular event changed. Field values are strings exactly as the wire delivers them, or nil where the server sent an explicit null — typing and parsing are the consumer's job.

Summary

Types

t()

@type t() :: %Lightstreamer.Update{
  changed: MapSet.t(String.t()),
  item: String.t(),
  snapshot?: boolean(),
  values: %{required(String.t()) => String.t() | nil}
}
  • :item — the item name, resolved back from the wire's 1-based index
  • :values — merged current state, field name → value (nil = wire null)
  • :changed — names of the fields changed by this event
  • :snapshot?true if this is the initial snapshot for the item