observe_action_event_type/2

Render the javascript for a custom action event type. The custom event type must be a tuple, for example: {% wire type={live id=myid} action={...} %}</code> Must return {ok, Javascript, Context}

Type:

first

Return:

#action_event_type{} properties:

  • event: tuple
  • trigger_id: string
  • trigger: string
  • postback_js: iolist
  • postback_pickled: string|binary
  • action_js: iolist

Edit on GitHub

Observed by

Modules

mod_mqtt

MQTT is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging…