Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

LiveStreamDef

object LiveStreamDef

Convenience constructors for LiveStreamDef.

Exported from scalive.streams.LiveStreamDef. View source (scalive/api/src/scalive/streams/LiveStream.scala:106-131)

Methods2

apply

def apply[A, Id](name: String, id: A => Id, domId: Id => String, limit: Option[StreamLimit] = ...): LiveStreamDef[A, Id]

Defines a stream using separate domain-ID selection and DOM-ID rendering functions.

Exported from scalive.streams.LiveStreamDef.apply. View source (scalive/api/src/scalive/streams/LiveStream.scala:108-114)

byId

def byId[A, Id](name: String)(id: A => Id): LiveStreamDef[A, Id]

Defines DOM ids as name-id(item) using the selected id's string representation.

The caller remains responsible for making the resulting strings stable, non-empty, valid HTML ids, and unique. Distinct Id values with equal string representations collide.

Exported from scalive.streams.LiveStreamDef.byId. View source (scalive/api/src/scalive/streams/LiveStream.scala:130-131)