Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
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:21-124)

Methods2

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:33-38)

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 through the production Phoenix transport session. Connect parameters are untrusted client JSON; the harness replaces _mounts with its own progressing join counter.

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

open

def open[R](application: LiveApplication[R], config: ZioHttpConfig, request: zio.http.Request, connectParams: Map[String, zio.json.ast.Json] = ...): zio.ZIO[R, Throwable, testing.ConnectedClient[R]]

Executes the disconnected route and returns a stateful client that can join and reconnect with the page's retained bootstrap credentials. Connect parameters are untrusted client JSON; the harness replaces _mounts with its own progressing join counter.

Defined by scalive.testing.ConnectedRender.open. View source (scalive/testing/src/scalive/testing/ConnectedRender.scala:58-80)