Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

LiveClient

enum LiveClient

How pages served by routes get the Phoenix LiveView browser client.

Scalive always serves its navigation-guard runtime and adds it to every page. See client setup.

Defined by scalive.LiveClient. View source (scalive/transport/zio-http/src/scalive/LiveClient.scala:8-21)

Values2

Custom

val Custom: LiveClient

The application's own browser bundle includes the Phoenix clients and connects its LiveSocket.

Defined by scalive.LiveClient.Custom. View source (scalive/transport/zio-http/src/scalive/LiveClient.scala:21-21)

Packaged

val Packaged: LiveClient

Scalive serves the Phoenix 1.8.9 and Phoenix LiveView 1.2.10 clients it packages, adds them to every page, and connects a LiveSocket after the page's own scripts have run.

The connection uses the router's socket path and the page's CSRF token. A page script that sets window.liveSocketOptions adds LiveSocket options such as hooks, uploaders, or params.

Defined by scalive.LiveClient.Packaged. View source (scalive/transport/zio-http/src/scalive/LiveClient.scala:16-16)