Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
o

JSCommand

object JSCommand

JSON encoding support for JSCommand.

Operations are emitted in composition order. Defaults represented by omitted command options are supplied by the LiveView client. A push event remains unresolved under this standalone encoder; normal HTML rendering uses its binding-aware encoder instead.

Defined by scalive.JSCommands.JSCommand. View source (scalive/api/src/scalive/JS.scala:50-57)

Givens1

given_JsonEncoder_JSCommand

given given_JsonEncoder_JSCommand[Msg]: zio.json.JsonEncoder[JSCommands.JSCommand[Msg]]

Encodes a command for the Phoenix LiveView client.

Do not use standalone encoding to execute a command containing push; attach that command to a typed HTML event binding so its message can be registered.

Defined by scalive.JSCommands.JSCommand.given_JsonEncoder_JSCommand. View source (scalive/api/src/scalive/JS.scala:56-57)