Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

LiveStream

class LiveStream[+A]

Opaque rendering handle for a LiveView stream.

Stream operations return a handle for the stream and renderIn rendering helpers. Store and render the returned handle; it is not a collection and intentionally exposes no entries or runtime protocol state to application code.

Stream runtime state belongs to the current socket or component lifecycle and is lost when that lifecycle ends or mounts again. A LiveStream must therefore not be the durable source of truth for domain data. Persist or retain canonical data separately and recreate the stream during mount.

Type parameters

A

the streamed item type

Exported from scalive.streams.LiveStream. View source (scalive/api/src/scalive/streams/LiveStream.scala:152-162)