Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
o

ConnectedRender

object ConnectedRender

Joins LiveViews through production route admission and connection supervision without starting a network server.

Defined by scalive.testing.ConnectedRender. View source (scalive/testing/src/scalive/testing/ConnectedRender.scala:24-119)

Methods1

join

def join[Msg, Model](liveView: LiveView[Msg, Model]): zio.package.RIO[zio.Scope, testing.ConnectedView[Msg]]

Finalizes and joins one LiveView at the root route.

The returned view preserves the LiveView's message type for send.

Defined by scalive.testing.ConnectedRender.join. View source (scalive/testing/src/scalive/testing/ConnectedRender.scala:35-40)

def join[R](application: LiveApplication[R], config: ZioHttpConfig, request: zio.http.Request, connectParams: Map[String, zio.json.ast.Json] = ...): zio.ZIO[&[R, zio.Scope], Throwable, testing.ConnectedView[Nothing]]

Executes the disconnected route, validates its bootstrap credentials, and starts its connected lifecycle using the production connection supervisor.

Defined by scalive.testing.ConnectedRender.join. View source (scalive/testing/src/scalive/testing/ConnectedRender.scala:45-77)