session$sendCustomMessage(type, message)
Shiny.addCustomMessageHandler(type, function(message) {...});
Shiny.setInputValue(id, value, {priority: "event"});