shiny.Session.send_input_message#

Session.send_input_message(id, message)#

Send an input message to the session.

Sends a message to an input on the session’s client web page; if the input is present and bound on the page at the time the message is received, then the input binding object’s receiveMessage(el, message) method will be called. This method should generally not be called directly from Shiny apps, but through friendlier wrapper functions like ui.update_text().

Parameters
  • id (str) – An id matching the id of an input to update.

  • message (Dict[str, object]) – The message to send.

Return type

None