Skip to contents

Push custom events from the server. Requires running shinymetrics_server() prior.

Usage

shinymetrics_custom_event(
  type,
  id = NULL,
  value = NULL,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

type

Type of event that is pushed.

id

A unique identifier for your custom event, used to identify specific events of a certain type.

value

Value of the event, this is converted to a character.

session

A valid Shiny session.

Details

It will not work for standard events.

Standard events:

  • connected

  • disconnected

  • disconnected

  • sessioninitialised

  • busy

  • idle

  • input

  • output

  • message

  • conditional

  • bound

  • unbound

  • error

  • outputinvalidated

  • recalculating

  • recalculated

  • visualchange

  • updateinput

  • pageview

  • filedownload

These must be custom events of your choosing, e.g.: a custom event when registering or logging in a user.