Public methods
Method new()
Creates a new ClientValue object to reflect the crosstalk variable
specified by `group` and `name`.
Usage
ClientValue$new(
name,
group = "default",
session = shiny::getDefaultReactiveDomain()
)
Arguments
name
The name of the crosstalk variable.
group
The name of the crosstalk variable group.
session
The Shiny session to connect to; defaults to the current
session.
Method get()
Read the value. This is a reactive operation akin to reading a reactive
value, and so can only be done in a reactive context (e.g. in a
`shiny::reactive()`, `shiny::observe()`, or `shiny::isolate()` block).
Usage
ClientValue$get()
Method sendUpdate()
Send a message to the browser asking it to update the crosstalk var to
the given value. This update does not happen synchronously, that is, a
call to `get()` immediately following `sendUpdate(value)` will not
reflect the new value.
Usage
ClientValue$sendUpdate(value)
Arguments
value
The new value for the crosstalk variable. Must be
serializable as JSON using `jsonlite`.
Method clone()
The objects of this class are cloneable with this method.
Usage
ClientValue$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.